View Full Version : Destroying session on browser tab close
08-25-2009, 03:58 PM
I understand that session data is only destroyed when the user completely exits the browser. However, the data remains intact if the user only exits out of the tab in the browser. Is there any piece of code which would destroy a session when exiting a tab? I tried Googling this, but I couldn't find anything.
08-25-2009, 04:54 PM
So long as the browser is running, it will not delete session based (temporary) cookies.
08-25-2009, 05:44 PM
What is the purpose of this? It may be possible to accomplish what you want indirectly, for instance by keeping a timer since last page load or something and destroying the session if the timer passes a certain time.
08-25-2009, 09:24 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.