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