View Full Version : can Session.timeout value change?
02-06-2005, 06:20 AM
When i use Session.Timeout, when the session is still active.. if I use session.Timeout and set it a different value does it change or will it still maintain the value it had previously and continue the count down to destroying the session.
The problem I have is that my server doesn't support global.asa right. So on everypage is the line session.timeout=30. Does this prolong the session each time the user loads a page or does it have no effect and remains unchanged from the minute that it was set?
02-07-2005, 06:41 AM
Everytime a page is executed, session timeout is reset. So with or without the session.timeout code in each page, the timeout is reset. Remember that session is terminated when user activity becomes idle (does not request a page) for the specified timeout.
It is advisable to put session.timeout in one place, maybe in a page after a user has successfully logged in.
02-07-2005, 09:25 AM
is a session removed when the browser that it was set to is closed or all browsers that point to the server on that client are closed or what.. i didnt think sessions were affected by browser closes but it seems that once a browser has been closed for a short amount of time(compared to the session timeout) it closes the session.. i have a timeout of 10 mins and it seems to close it when the browser is closed for about 30 seconds to 1 minute... i havnt done much research on sessions though, but since only 2 people can log in and it only needs to save 1 byte of data for each person, i thought i may as well use them :p
02-08-2005, 12:53 PM
Glad you mentioned that Ghell.... u should do some more research on it and re-post. That is a very interesting subject. Oh and thanks Glen.!! :D :thumbsup:
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.