View Full Version : destroy session user clicks X
cgibie
02-09-2007, 04:02 AM
HI guys, is it safe to store the mysql unique ID using the $_SESSION? Also, how can I destroy a session once the user Click X cancel on the top right hand corner of explorer? I meant I dont want to destroy session while the user is on my page doing their work. I want to destroy the session only when they click that red X cancel.
Carastas
02-09-2007, 11:15 AM
the session is destroyed after some inactivity period (differs from setup to setup) but you shouldn't worry about it getting destroyed while the user is on the site. Afaik, iex destroys the session when exiting (or opens a new one) and firefox maintains it. but none of them destroy it when the user is navigating.
george
cgibie
02-09-2007, 07:25 PM
But with IE7.0 , the session won't be destroyed if you only close the tab. Is there a code to handle that?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.