On 26 Aug 2011 at 01:33, Andreas <maps...@gmx.net> wrote: 

> what is the best practice to catch an irregular end of an application?
> The browser might crash or the user closes accidently the browser window
> decides to jump away to his favourite bloq without loging out of my
> application.
> Is there some way to let an javascript event trigger some ajax to store
> an exit time into my DB or make it mandatory to at least visit the
> logout.php before someone can surf away?

Use the onbeforeunload event.

--
Cheers  --  Tim

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

Reply via email to