PHP Classes

Timed Sessions

Recommend this page to a friend!

      Access user Class  >  All threads  >  Timed Sessions  >  (Un) Subscribe thread alerts  
Subject:Timed Sessions
Summary:Auto logout of user after a specific time period
Messages:3
Author:Rod Cambridge
Date:2005-11-21 16:19:04
Update:2005-11-21 23:45:29
 

  1. Timed Sessions   Reply   Report abuse  
Picture of Rod Cambridge Rod Cambridge - 2005-11-21 16:19:04
Hiya,

While using Access User Class, I've found that the sessions are very persistent - in that as long as IE is open and the user is logged in, access to protected pages is continnual; even if my machine has been in Standby mode for a day, I can wake it up and I'm still logged in.

Olaf - is there a way to time sessions so that, for example, after 1 or 2 hours, the user is required to log in again before accessing any protected pages?

Thanks!

Rod.

p.s. - Olaf, I've said it before but have to say it again - this class is fantastic!

  2. Re: Timed Sessions   Reply   Report abuse  
Picture of Olaf Lederer Olaf Lederer - 2005-11-21 20:00:21 - In reply to message 1 from Rod Cambridge
yes of course, you can overule the (default) php directive by:

ini_set("session.gc_maxlifetime", "3600");




  3. Re: Timed Sessions   Reply   Report abuse  
Picture of Rod Cambridge Rod Cambridge - 2005-11-21 23:45:29 - In reply to message 2 from Olaf Lederer
Wonderful!

Thanks Olaf,

Rod.