expiring login cookies expiring login cookies
 

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

expiring login cookies

Started by studeo, January 02, 2007, 05:40:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

studeo

The cookies for members of my site (including me) seem to expire every 2-3 weeks whereas I/they have to login again. Why does this do that? Anybody?

Thanks

Nibbler

Session cookies are set to expire after 2 weeks. I don't know why.

bridge/coppermine.inc.php


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


Set the expiry time to whatever you see fit.

studeo

Thank you.  Any need to change this line in the same file:

// Lifetime of 'remember me' session is 2 weeks
                $rememberme_life_time = time()-(CPG_WEEK*2);

studeo

What if I never want it to expire?

Nibbler

Yeah, you should change that line to match. If you don't want sessions to expire just set a high value like a few years.