Hi,
I designed a page using sessions. For security purpose, I want that when the user leaves the page for example 5 minutes, I want the session to expire. I want to know if there is a way to know when the page is idle for a certain amount of time?
Thanks.
Session Expiry
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Session Expiry
store the unix timestamp in another session and check this with the current time stamp
use...
use...
Code: Select all
time()-
devendra-m
- Forum Contributor
- Posts: 111
- Joined: Wed Sep 12, 2007 3:16 am
Re: Session Expiry
or you can set session.gc_maxlifetime =300 in php.ini