Session Timeouts

Session Timeouts, a forum discussion on Jojo CMS. Join us for more discussions on Session Timeouts on our General Discussion forum.

Back to Forum Index : Back to General Discussion   RSS
Rick Rick

22 May 2012
Posts: 336

The timeout issue can be fixed by adding ini_set('session.gc_maxlifetime', 86400); to includes/jojo.php before both occurrances of "session_start();" fixes it. The session data is being discarded early (default is round 24 minutes). This fixes it and makes the data be retained for 24 hours. The session cookie is still discarded at the end of the browser session.

I haven't committed this fix since I'm not sure if this is the best way to do it since it may bulk up the database. I was tempted to set it higher than 24 hours, but might make it configurable.

An alternate way to fix this would be to have a second "remember me" cookie that expires with the browser session and auto logs the user back in if they've timed out.

Any preference?
Back to Forum Index : Back to General Discussion   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.