Re: PHP Session Idle Time
| From: | 1LT John W. Holmes | Date: | Thu, 27 Jun 2002 21:26:48 +0000 |
| Subject: | Re: PHP Session Idle Time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104219@lists.php.net to get a copy of this message | ||
How do you define idle time in a stateless environment??
How do you know if it just takes the person 20 minutes to read the page, or
they are idle?
All you can do is set a time when the page was requested, and when the next
page is requested, if it's been over XX minutes, they were idle too long and
they must log in again.
---John Holmes...
----- Original Message -----
From: "Jefferson Cowart" <jeff@cowart.net>
To: <php-general@lists.php.net>
Sent: Thursday, June 27, 2002 5:13 PM
Subject: [PHP] PHP Session Idle Time
> I'm writing a web application in which I would like the session to
> expire after a certain amount of idle time. I tried using the
> session_set_cookie_params function but that is time from session start.
> How would I go about doing idle time?
>
> ----------------
> Thanks
> Jefferson Cowart
> Jeff@cowart.net
>
> Support Open Instant Messaging Protocols
> http://www.petitiononline.com/openIM/petition.html
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>