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: Could it possible to set time-out time after login?  (Read 3870 times)

0 Members and 1 Guest are viewing this topic.

Jr. tristan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Could it possible to set time-out time after login?
« on: April 09, 2006, 05:59:42 am »

Registered users have permission to view my album.
But they are not visit frequently, such that they are not familiar to the coppermine system.
They always forget to logout after login.

Could it possible to set time-out time after login just like the one @ login screen of this support forum?

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Could it possible to set time-out time after login?
« Reply #1 on: April 09, 2006, 09:36:31 am »

what's wrong with not logging out and being authenticated automatically when returning? Most people consider this to be a feature.
Logged

Nibbler

  • Guest
Re: Could it possible to set time-out time after login?
« Reply #2 on: April 09, 2006, 03:24:22 pm »

You can set that up in bridge/coppermine.inc.php

Session lifetime
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;

Cookie expiry time
Code: [Select]
                // set the session cookie
                setcookie( $this->client_id, $this->session_id, time() + (CPG_WEEK*2), $CONFIG['cookie_path'] );
Logged

Jr. tristan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Could it possible to set time-out time after login?
« Reply #3 on: April 10, 2006, 02:40:43 pm »

what's wrong with not logging out and being authenticated automatically when returning? Most people consider this to be a feature.

However, that feature could already be done by ticking the check box at the login page.

Categories of cpg have no password setting.
And I want registered users could gain access to most of my albums, but sometimes they are not using a private computer (such as internet cafe and office).
Logged

Jr. tristan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Could it possible to set time-out time after login?
« Reply #4 on: April 10, 2006, 02:53:59 pm »

You can set that up in bridge/coppermine.inc.php

Session lifetime
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;

Cookie expiry time
Code: [Select]
                // set the session cookie
                setcookie( $this->client_id, $this->session_id, time() + (CPG_WEEK*2), $CONFIG['cookie_path'] );


Thank you for your assistance.

Please show or highlight the variable that I could or have to change.
What happen if life time of normal session is smaller than "remember me" session.
Which one overule another. thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.