Why not unregistered the session variables first, destroy the session second and redirect the user with a header location to a plain html page that includes a one line JavaScript in the body tag like onload+thiswindow cloase or something like that, and a message that "please closes this window for complete logout. That's what I do and it works, in mozilla the script closes the window, in i.e. it asks that the user verify if they want to close the window, if they say no, then the user sees the message that "please close this window to logout" and that would pretty much take care of everything as far as I know.
- Victor > www.argilent.com -----Original Message----- From: Raphael Hamzagic [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 5:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] ending a session Of course Gurhan, I have read all the php manual. How can I send a message when the user closes the browser to destroy the session? Thanks in advance Raphael "Gurhan Ozen" <[EMAIL PROTECTED]> wrote in message 1031261344.5091.266.camel@LOCALHOST">news:1031261344.5091.266.camel@LOCALHOST... > You can end the session by using function session_destroy(). > See: > > http://www.php.net/manual/en/function.session-destroy.php > > For general information on how PHP handles sessions see: > > http://www.php.net/manual/en/ref.session.php > > Hope this helps. > Gurhan > > On Thu, 2002-09-05 at 17:17, Raphael Hamzagic wrote: > > Hi, > > > > I'm just wanna know why the session doesn't end when the user closes the > > browser window and how can i make it. > > > > Thanks > > > > Raphael > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php