Cookies Problem with v1.4.10 Cookies Problem with v1.4.10
 

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]

Main Menu

Cookies Problem with v1.4.10

Started by MouCo, June 12, 2007, 05:47:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MouCo


Hi all.

I've read some post that might be related but don't talk exactly of my problem.

I've installed coppermine 1.4.10 without a problem... everything was fine until i disabled anonymous access.

Cause of that my gallery will open directly to the login prompt and it began to give me this error message:

"Warning your browser does not accept script's cookies"

This message only appears the first time i open the site or if i clear all internet explorer data.

I have no problems with the login.. login is allways sucessfull.. but i don't want the message there for everyone that opens the site for the first time.

I noticed something funny... if i open the page with no cookie saved on my computer (first visit) the message apears.. if i press F5 to reload the page it will disapear and won't show up again till i clear my browser data

I've tried IE6 IE7 and Firefox and the problem is common to all of them.

I made some google searches and found tons of sites with coppermine gallery with the exactly the same problem.

Here are 2 random examples:

if we go directly to the login - Problem

http://www.tv-cocktail.com/galeria/login.php?referer=index.php
http://album.adporto.net/login.php?referer=index.php

if we go to the main page - No Problem

http://www.tv-cocktail.com/galeria/
http://album.adporto.net/


Can anyone help me?..


PG




Nibbler

That's normal. If you want to remove the warning edit login.php

MouCo

Hi again.. :)

But my browser accepts cookies... why does he report no cookie support?

If it said "You need cookies enabled"... ok that message is a warning

but it says that my browser doesn't accept... that means that he "checked for" and "didn't find"

I edited login.php and removed the warning.. but if someone with cookies disable tries to login there will be no warning and probably no login success..

thanks for the quick reply.

PG

Nibbler

Coppermine looks to see if the user has any cookies. If there are no cookies then it displays the message. Naturally on the first visit the user has no cookies.

blitz

I have this same problem and "solved" it by commenting out the warning in the login.php file. However, I agree with MuoCo -- if the script doesn't find any existing cookies, it shouldn't tell the user that the "browser does not accept script's cookies", because that's not necessarily true (and it can be confusing). This behavior should be corrected in a future version. Guess I should go see if a bug report's been filed.

Joachim Müller

I second the idea of Blitz: the warning about cookie acceptance should only be displayed if the corresponding server vars are being populated, i.e. if a form has been submit and the $_GET/$_POST vars are being populated.