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
> 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