Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Automatic log out after x time?  (Read 6594 times)

0 Members and 1 Guest are viewing this topic.

whmeeske

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 68
    • WHMEESKE.NL
Automatic log out after x time?
« 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?
« Last Edit: December 31, 2005, 10:28:03 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Automatic log out after x time?
« Reply #1 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.
Logged

whmeeske

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 68
    • WHMEESKE.NL
Re: Automatic log out after x time?
« Reply #2 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  :)
Logged

papneja

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Automatic log out after x time?
« Reply #3 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?
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4699
    • Windsurf.me
Re: Automatic log out after x time?
« Reply #4 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
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.