Could it possible to set time-out time after login? Could it possible to set time-out time after login?
 

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

Main Menu

Could it possible to set time-out time after login?

Started by Jr. tristan, April 09, 2006, 05:59:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jr. tristan

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

Joachim Müller

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

Nibbler

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

Session lifetime

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

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

Jr. tristan

Quote from: GauGau 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.

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

Jr. tristan

Quote from: Nibbler on April 09, 2006, 03:24:22 PM
You can set that up in bridge/coppermine.inc.php

Session lifetime

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

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