Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2004, 01:08 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ending a Session

Hi All,

I have a form where approximately 30,000 people will fill out within an 8 hours time frame. Therefore, I want to save server resources as much as possible. I have set my session timeout to 40 minutes.

This is a simple question, but I get different feedbacks from different people. If I need to end a session, I know there are differents methods to do so(set timeout, session.abandon, et.). However, my question is, will session end if I close out the browser window?

Thanks.

Leon

 
Old September 22nd, 2004, 03:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes Leon, it does.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old September 22nd, 2004, 03:24 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Vijay!

Leon

 
Old September 22nd, 2004, 03:34 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It may be important to note *when* it does time out.

When the user closes his or her browser, the server does not know this has happened. This means the server will keep the session alive for the next 40 minutes after which it will destroy he session object.

However, during those 40 minutes the session is still there, consuming resources.

If you're worried about performance, and all people are doing is filling in a (short) for, I'd lower the timeout from 40 minutes to, say, 10 or so.

This way the session will timeout quicker, freeing up valuable resources.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Sour Times by Portishead (Track 2 from the album: Dummy) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
ending tag ?> Zardooloi Intro Programming 1 August 3rd, 2007 09:11 AM
Application still runing even after Ending it PakXoxer Pro VB 6 4 March 9th, 2005 02:10 AM
How to get a month's beg. and ending dates widad Classic ASP Professional 6 October 20th, 2004 07:19 AM
Ending a console application FarCry VS.NET 2002/2003 9 May 26th, 2004 11:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.