Re: sessions and expirations and isolations

From: Date: Fri, 20 Jan 2012 01:22:00 +0000
Subject: Re: sessions and expirations and isolations
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-316339@lists.php.net to get a copy of this message
On Tue, Jan 17, 2012 at 5:17 PM, Haluk Karamete <halukkaramete@gmail.com> wrote: > This brings the question to the following; > WHEN DOES THE SERVER KNOW THAT A USER IS REALLY GONE OR HE CLOSED HIS BROWSER? Just addressing this quesiton -- you are correct that the browser does not tell the application when it closes. What *does* happen is that the cookie associated with that browser session is destroyed or nullified, thus when the use reopens their browser and opens the application again, there won't be a session cookie sent to the application on start. As explained above, this has nothing to do with how long the session data may be stored on the server, it just won't be accessed if the browser has been closed in the meantime.

« previous php.general (#316339) next »