News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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.