Ohhh, I see what you are looking for.. You have to play around with some javascript to do it. Have a logout.php file, and destroy session in that file ... And in the main page, have the javascript to open up a new window with logout.php page. Makes sense? I hope this helps. Gurhan
On Thu, 2002-09-05 at 17:32, Raphael Hamzagic wrote: > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php