Re: Session still open
| From: | Bill | Date: | Mon, 10 Mar 2008 20:32:47 +0000 |
| Subject: | Re: Session still open | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271232@lists.php.net to get a copy of this message | ||
Hi Daniel,
>> 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.+
I didn't set any cookie so it must be the php session cookie.
How can I check for the visitor's presence ?
I can't set a timer or check for activity since the visitor can be studying
an online document.
I must rely on the browser connection.
Thanks