Advanced search  

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]

Pages: [1]   Go Down

Author Topic: cpg 1.4.3: cookie expire when browser closed  (Read 2301 times)

0 Members and 1 Guest are viewing this topic.

atmorell

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
cpg 1.4.3: cookie expire when browser closed
« 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
« Last Edit: October 15, 2007, 01:48:31 pm by Sami »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: cpg 1.4.3: cookie expire when browser closed
« Reply #1 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 ?
Logged
‍I don't answer to PM with support question
Please post your issue to related board

atmorell

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: cpg 1.4.3: cookie expire when browser closed
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cpg 1.4.3: cookie expire when browser closed
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.