localhost Posted July 21, 2006 Share Posted July 21, 2006 I need to make it so if a session isn't active, it will expire after 20 minutes or so...although if they are browsing through the pages with session_start();, it will stay active. Quote Link to comment https://forums.phpfreaks.com/topic/15227-session-expire/ Share on other sites More sharing options...
chrisprse Posted July 21, 2006 Share Posted July 21, 2006 You could try inserting the following line into your .htaccess file:php_value session.gc_maxlifetime 1200 Quote Link to comment https://forums.phpfreaks.com/topic/15227-session-expire/#findComment-61558 Share on other sites More sharing options...
wildteen88 Posted July 21, 2006 Share Posted July 21, 2006 or you can use ini_set i believe:[code]ini_set('session.gc_maxlifetime', 1200);[/code] Quote Link to comment https://forums.phpfreaks.com/topic/15227-session-expire/#findComment-61564 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.