Re: ending a session

From: Date: Thu, 05 Sep 2002 21:20:34 +0000
Subject: Re: ending a session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115355@lists.php.net to get a copy of this message
Because there is absolutely no way for PHP to know that the user has closed the browser window. Nothing is sent from the browser to the server on a window close. By using session cookies (cookies without a specified expiry time) the session is effectively ended since the cookie is gone once the browser has been completely shut down (not just a window). When that user comes back to the site after starting their browser again they will get a new session. -Rasmus On Thu, 5 Sep 2002, 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 >

« previous php.general (#115355) next »