Jump to content

Admin Area Keeps Login Me Out


Guest

Recommended Posts

Session timeout in progress. Check value of session.gc_maxlifetime in php.ini (or CC3 Admin panel - Server info ). Deafault setting is 1440 (1440 seconds -> 24 mins).

Session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. :)

Search and set desidered value up in php.ini (This makes a MASTER value for every PHP script), or place this code in file admin/include/auth.inc BEFORE session_start();

@ini_set('session.gc_maxlifetime', '3600');

3600 -> 1 hour (This makes a LOCAL value for CC admin ONLY).

Be careful, do not set up a huge value because of security B)

Link to comment
Share on other sites

  • 3 weeks later...
Guest sandy 343

Hi

I have the same problem only I use CC2.07 and there in no dir include...

what is tehe name of the file I can change the session.gc_maxlifetime? (in CC2.07)

Sandy

Link to comment
Share on other sites

yes, CC2 admin code is quite different.....

1. set time into session.gc_maxlifetime in php.ini

or

2. add @ini_set('session.gc_maxlifetime', '3600'); to every file, where session_start(); occurs....(almost every :) )....as the first PHP command....

maybe ... much more effective method exists, but im not familiar with CC2 by now

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...