Re: help avoid multiple login

From: Date: Tue, 29 Nov 2005 10:16:16 +0000
Subject: Re: help avoid multiple login
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-226579@lists.php.net to get a copy of this message
Jochem Maas wrote:
it might be possible to use some browser plugin to hit the server if it notices that it's window is being closed... although I have a sneaking suspicion that Flash, for instance, has the same problem as javascript with not being able to differentiate between the page unloading and the window closing. **as far as I know there is NO WAY to tell when the user closes the window, unless you give them a specific way of telling you (e.g. via a 'log off and close the window' link) and they are nice enough to only use the mechanism you provide (fat chance :-).
You could use the onunload event to make an AJAX style call... http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events/onunload.asp -- Richard Heyes http://www.phpguru.org

« previous php.general (#226579) next »