Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to destroy the session Object ?

Status
Not open for further replies.

mukund

Programmer
Mar 6, 2001
64
GB
Hi,
When all the pages opened by a client browser are closed, the session variable needs to be destroyed.


Any Suggestions/Help is Welcome,

Thanks,
Mukund.


 
Hi,
The session timeout is set to 5 hrs. SO even if the Browser window is closed, the session will close only after 5 hrs. I need something to close the session pre-maturely.

Regards,
Mukund.
 
Ah. I thought that a session was closed automatically regardless of the session timeout value when a client connection closed. -GTM Solutions, Home of USITE-
-=
 
That is true.

Session.Timeout sets a new value to replace the 20 minute default, but the rule stays in effect that if the client browser is closed, then the session variables/objects are blown away for that particular session. They will not sit on the server's memory for five hours if the client closes all browser windows.

session.abandon will also do it, like Ovatvvon suggested.
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top