Re: how to kill a session by closing window or tab clicking on X?

From: Date: Mon, 03 Nov 2008 12:39:05 +0000
Subject: Re: how to kill a session by closing window or tab clicking on X?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-282787@lists.php.net to get a copy of this message
Afan Pasalic napsal(a):
hi. I'm sorry for posting this more javascript then php question, but it's somehow php related. here is the issue: very often people close the window/tab without logging out. I need solution how to "recognize" when [x] is clicked (or File >> Close) and kill the session before the window/tab is closed. few years ago, before firefox and tabs, I solved this by javascript and onClose() as a part of body tag. now, it doesn't work anymore. any suggestion/opinion/experience? thanks afan
You might wanna check this out: http://cz2.php.net/ignore_user_abort

« previous php.general (#282787) next »