coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: atmorell on October 15, 2007, 10:09:47 AM

Title: cpg 1.4.3: cookie expire when browser closed
Post by: atmorell on October 15, 2007, 10:09:47 AM
Hello,

What I would like to do is charge the expiration time of coppermine cookies from 14 days to when the browser is closed. I have searched the forum and found several howtos - but they all look outdated. Where is the login cookie set? If I have understood this correctly the cookie expire time should be changed from time() + 86400 to 0 .


Best regards.
Asbjørn Morell
Title: Re: cpg 1.4.3: cookie expire when browser closed
Post by: Sami on October 15, 2007, 11:43:32 AM
bridge/coppermine.inc.php # 205
CPG_WEEK is 604800 = 7*24*60*60

Why do you want to do this anyway ?
Title: Re: cpg 1.4.3: cookie expire when browser closed
Post by: atmorell on October 15, 2007, 12:58:23 PM
Nice. Worked great.
Randomly I can't login to coppermine from IE7. (Firefox works fine) Cookie name/path has not been changed. If I clear my browser cache I can login again. I don't think it is a coppermine issue, because I can login forn another pc that is also having IE7 installed. So I will try to create a new cookie session each time my browser is closed. Unfortunately it can be weaks before the problem might appear again.
Title: Re: cpg 1.4.3: cookie expire when browser closed
Post by: Joachim Müller on October 15, 2007, 04:46:17 PM
Marking as solved, although your solution seems to be a workaround.
Instead of fiddling with the core code of coppermine I rather suggest adapting your browser to your needs. You can easily modify how IE handles cookies using "Internet Options" and changing your settings on the cookies/privacy tab. Another option would be to use Firefox instead of IE7 if this only happens on your own machine. Imo Firefox is superior to IE7 anyway.