forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: whmeeske on December 31, 2005, 09:58:10 pm

Title: Automatic log out after x time?
Post by: whmeeske on December 31, 2005, 09:58:10 pm
I'm using CPG 1.4.2 and noticed that when I log in as admin CPG automatic logs out after x time being idle.
Does someone knows if it's possible to adjust the time for automatic log out?
Title: Re: Automatic log out after x time?
Post by: Nibbler on December 31, 2005, 10:11:09 pm
That's in bridge/coppermine.inc.php

Code: [Select]
                // Lifetime of 'remember me' session is 2 weeks
                $rememberme_life_time = time()-(CPG_WEEK*2);
       
                // Lifetime of normal session is 1 hour
                $session_life_time = time()-CPG_HOUR;

CPG_WEEK and CPG_HOUR are already defined as the number of seconds in a week and hour respectively.
Title: Re: Automatic log out after x time?
Post by: whmeeske on December 31, 2005, 10:24:14 pm
That's in bridge/coppermine.inc.php

Code: [Select]
                // Lifetime of 'remember me' session is 2 weeks
                $rememberme_life_time = time()-(CPG_WEEK*2);
       
                // Lifetime of normal session is 1 hour
                $session_life_time = time()-CPG_HOUR;

CPG_WEEK and CPG_HOUR are already defined as the number of seconds in a week and hour respectively.
OK, thank you very much. I've searched for it but couldn't really find it.
Now it's almost time to celebrate New Year  :)
Title: Re: Automatic log out after x time?
Post by: papneja on May 16, 2010, 05:10:53 pm
I dont get it...
Ive done the changes to make the session time shorter... but the session still lasts forever...
are you sure these are the parameters?
Title: Re: Automatic log out after x time?
Post by: phill104 on May 16, 2010, 09:01:33 pm
Please don't hijack other peoples threads with different problems. Your other thread also doesn't contain a link to your site as required by the board rules. This mode is for a different version of coppermine than the one you mention in your other thread so the code will be different.

Locking