Kryllster Posted January 17, 2011 Share Posted January 17, 2011 Is it possible to set a certain session to time out after say 2 minutes. I want to lock a person from seeing a page for 2 minutes then destroy the session yet keep the primary session and still keep dpoing what they were doing? Just curious. Thanks, Link to comment https://forums.phpfreaks.com/topic/224717-session-time-out-or-timer/ Share on other sites More sharing options...
BlueSkyIS Posted January 17, 2011 Share Posted January 17, 2011 i would use a cookie set to expire in 2 minutes, then check for that cookie. if the cookie is not there (expired), they can't see the page. Link to comment https://forums.phpfreaks.com/topic/224717-session-time-out-or-timer/#findComment-1160720 Share on other sites More sharing options...
BlueSkyIS Posted January 17, 2011 Share Posted January 17, 2011 on second thought, you could just store a start-time in a session variable or database, then check to see if the time has expired. all sessions, no 'manual' cookie manipulation. Link to comment https://forums.phpfreaks.com/topic/224717-session-time-out-or-timer/#findComment-1160762 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.