cpg 1.4.3: cookie expire when browser closed cpg 1.4.3: cookie expire when browser closed
 

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

cpg 1.4.3: cookie expire when browser closed

Started by atmorell, October 15, 2007, 10:09:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

atmorell

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

Sami

bridge/coppermine.inc.php # 205
CPG_WEEK is 604800 = 7*24*60*60

Why do you want to do this anyway ?
‍I don't answer to PM with support question
Please post your issue to related board

atmorell

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.

Joachim Müller

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.