Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Automatic log out after x time?  (Read 9048 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

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886
    • 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.023 seconds with 19 queries.