RE: [PHP-DB] Set Logout Time for No Activity
| From: | John W. Holmes | Date: | Fri, 20 Dec 2002 12:57:53 +0000 |
| Subject: | RE: [PHP-DB] Set Logout Time for No Activity | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24307@lists.php.net to get a copy of this message | ||
> Is there a variable in php.ini that will allow you to log someone
out
> if there is no activity of 30 minutes or greater from the logged in
> user? Thanks in advance. :)
No, not really. You can use sessions, for something like this, though.
You start a session and look for a variable within it before you proceed
with the page. If the user is inactive for a while, the session will be
cleaned up and not exist when you go to check it, so you make them log
in again. You can control the session garbage collection time in
php.ini.
---John Holmes...