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']; ?> Link to comment https://forums.phpfreaks.com/topic/212935-php-session-timeout/ 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 Link to comment https://forums.phpfreaks.com/topic/212935-php-session-timeout/#findComment-1109072 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.