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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to