Destroy Session on Browser Window Closing
View Single Post
05-08-2008, 05:40 PM
Join Date: Sep 2007
Originally Posted by
If you set a cookie (or session), the session automatically destroys on browser close. By default, the cookie is only meant to stay alive for the life of the browser session (and usually 15 minutes of inactvity).
While that can be true for cookies (depending on the settings), that is not true for sessions. Sessions are stored on the server, the server has no way of knowing when you close your browser. Sessions are destroyed after a certain amount of time of inactivity.
View Public Profile
Send a private message to Village Idiot
Find More Posts by Village Idiot