Re: Session still open

From: Date: Mon, 10 Mar 2008 20:08:15 +0000
Subject: Re: Session still open
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-271229@lists.php.net to get a copy of this message
On Mon, Mar 10, 2008 at 3:59 PM, Bill <billlab51@hotmail.com> wrote: > Hi > > Ubuntu7.10 LAMP > > A PHP session destroys itself as soon as the client disconnects from the > site. > > Why if I connect from another machine, log in, and disconnect without > logging off, and return 5 mins later, my session is still alive ? A session only expires in three cases: a.) An explicit session_destroy() is sent.* b.) The user-side cookie with the session key expires. c.) The session corrupts.+ * You can also unset() or session_unset() all of the $_SESSION variables, but it still won't kill the user's cookie. + The session won't always automatically be destroyed in this case, so don't rely on it. -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?>

« previous php.general (#271229) next »