Adjusting Session Times
| From: | Floyd Resler | Date: | Tue, 14 Sep 2010 14:26:19 +0000 |
| Subject: | Adjusting Session Times | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-308062@lists.php.net to get a copy of this message | ||
We just got a client whose requirement is that user sessions expire after 30 minutes of inactivity.
Our other clients are happy with not having their sessions expire during the work day (i.e. life is
8 hours). I am using a MySQL database to store the session data. My thought is to adjust the
session expiration in the table based on the client currently logged in. Is this a good approach or
would there be better ways to do it? And just to clarify: all clients use the same Web site.
Thanks!
Floyd