Guest Posted July 23, 2005 Share Posted July 23, 2005 Hi there, When i login to my admin area after a few minutes it logs me out.. How can i stop this from happening?? Cheers Quote Link to comment Share on other sites More sharing options...
convict Posted July 23, 2005 Share Posted July 23, 2005 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) Quote Link to comment Share on other sites More sharing options...
Guest sandy 343 Posted August 10, 2005 Share Posted August 10, 2005 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 Quote Link to comment Share on other sites More sharing options...
convict Posted August 10, 2005 Share Posted August 10, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest sandy 343 Posted August 10, 2005 Share Posted August 10, 2005 Hi, Thanks, I really feel a bit stupid to ask....where can I find php.ini?? Sandy Quote Link to comment Share on other sites More sharing options...
convict Posted August 10, 2005 Share Posted August 10, 2005 Huh, it depends to OS, user privileges, security settings.........but most of the sites (hosting) client has NO ability to 'manage' php.ini directly Quote Link to comment 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.