tobimichigan Posted February 12, 2010 Share Posted February 12, 2010 Hi Coders, I restrict access to php pages with the following: session_start(); //if there is no session set then redirect to login page if(!isset($_SESSION['MM_level'])){ header("Location: login.php"); } Please I am trying to code in php a way of auto-logging off users after an idle time of say 5mins. How do I do this? Any applicable help would be highly appreciated. Quote Link to comment Share on other sites More sharing options...
bugcoder Posted February 12, 2010 Share Posted February 12, 2010 http://www.phpbuilder.com/tips/item.php?id=93 Quote Link to comment Share on other sites More sharing options...
tobimichigan Posted February 12, 2010 Author Share Posted February 12, 2010 U're not saying anything... or what? Quote Link to comment Share on other sites More sharing options...
bugcoder Posted February 12, 2010 Share Posted February 12, 2010 http://www.phpbuilder.com/tips/item.php?id=93 well its an example that might work for you. Quote Link to comment Share on other sites More sharing options...
tobimichigan Posted February 12, 2010 Author Share Posted February 12, 2010 Alright then thanks, I'd certainly work on that... 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.