Far Cry Posted September 9, 2010 Share Posted September 9, 2010 Hey I was wondering is there a way I can set my sessions to timeout/end a session after a certain amount of time? Here is what I am dealing with... <?php session_start(); $username = $_SESSION['username']; $userid = $_SESSION['userid']; ?> Quote Link to comment Share on other sites More sharing options...
petroz Posted September 9, 2010 Share Posted September 9, 2010 You can set the session cookie lifetime.. Check out the manual. http://www.php.net/manual/en/function.session-set-cookie-params.php 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.