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