You are here: Re: sessions & browser closing detection « PHP Language « IT news, forums, messages
Re: sessions & browser closing detection

Posted by Zoe Brown on 09/08/05 16:02

"Gregor Rot" <dontwriteme@email.com> wrote in message
news:dfourl028ej@enews1.newsguy.com...
> Hi,
>
> i have a session and then i close the browser (X). Is it possible to
> manage somehow to do some code execution before the browser is closed?
>
> I was checking the PHP Session Handling Functions and noticed i can use a
> handler to modify them - is any of these functions executed before the
> browser closes (the session is lost?)...otherwise, is there a javascript
> solution for this?

I think you are looking for unBeforeUnload() or something like that. It is
available in javascript. It goes in the body tag like the onLoad().

I dont think this would be possible in PHP without redirecting to another
php script.

 

Navigation:

[Reply to this 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

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