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 Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.