On Mon, Mar 10, 2008 at 3:59 PM, Bill <[EMAIL PROTECTED]> 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); } ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php