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
bridge/coppermine.inc.php # 205
CPG_WEEK is 604800 = 7*24*60*60
Why do you want to do this anyway ?
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.
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.