Re: How to catch an irregular end of an application?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26 Aug 2011 at 01:33, Andreas <maps.on@xxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux