Automatic log out after x time? Automatic log out after x time?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Automatic log out after x time?

Started by whmeeske, December 31, 2005, 09:58:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

whmeeske

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?

Nibbler

That's in bridge/coppermine.inc.php


                // 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.

whmeeske

Quote from: Nibbler on December 31, 2005, 10:11:09 PM
That's in bridge/coppermine.inc.php


                // 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  :)

papneja

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?

phill104

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
It is a mistake to think you can solve any major problems just with potatoes.