Reply to Re: [PHP] help avoid multiple login

Your name:

Reply:


Posted by Richard Heyes on 11/29/05 12:16

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация