Re: how to kill a session by closing window or tab clicking on X?

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

 



On Mon, Oct 27, 2008 at 10:10 AM, Afan Pasalic <afan@xxxxxxxx> wrote:

> hi.
> I'm sorry for posting this more javascript then php question, but it's
> somehow php related.
> here is the issue: very often people close the window/tab without logging
> out. I need solution how to "recognize" when [x] is clicked (or File >>
> Close) and kill the session before the window/tab is closed.
>
> few years ago, before firefox and tabs, I solved this by javascript and
> onClose() as a part of body tag. now, it doesn't work anymore.
>
> any suggestion/opinion/experience?
>
> thanks
>
> afan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
try onBeforeUnload()

-- 

Bastien

Cat, the other other white meat

[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