9911782 Posted February 8, 2007 Share Posted February 8, 2007 Hi All Can somebody ps send me the php script that could help me to be able to kick out(time-out) users out of the page once they dont take the action for 5mins. _________________ Thank you for your Help 9911782 Link to comment https://forums.phpfreaks.com/topic/37586-time-out-sessions/ Share on other sites More sharing options...
JasonLewis Posted February 8, 2007 Share Posted February 8, 2007 well. you could store an the time in a session. here is some basic code: [code=php:0] $timeout = time() - (60 * 5); //60 seconds x 5 minutes. if($_SESSION['timeout'] < $timeout){ session_destroy(); }else{ $_SESSION['timeout'] = time(); } hopefully i have everything right. its late here... Link to comment https://forums.phpfreaks.com/topic/37586-time-out-sessions/#findComment-179766 Share on other sites More sharing options...
9911782 Posted February 8, 2007 Author Share Posted February 8, 2007 thank you for your response. I will go and test it now. Link to comment https://forums.phpfreaks.com/topic/37586-time-out-sessions/#findComment-179783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.