Re: Session still open

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 10, 2008 at 3:59 PM, Bill <billlab51@xxxxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux