coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: MouCo on June 12, 2007, 05:47:49 PM

Title: Cookies Problem with v1.4.10
Post by: MouCo on June 12, 2007, 05:47:49 PM

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



Title: Re: Cookies Problem with v1.4.10
Post by: Nibbler on June 12, 2007, 06:27:38 PM
That's normal. If you want to remove the warning edit login.php
Title: Re: Cookies Problem with v1.4.10
Post by: MouCo on June 12, 2007, 06:59:39 PM
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
Title: Re: Cookies Problem with v1.4.10
Post by: Nibbler on June 12, 2007, 07:47:03 PM
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.
Title: Re: Cookies Problem with v1.4.10
Post by: blitz on January 07, 2008, 05:52:42 AM
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.
Title: Re: Cookies Problem with v1.4.10
Post by: Joachim Müller on January 07, 2008, 09:15:10 AM
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.