Cookies? Cookies?
 

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?

Started by scrappinhappy, July 29, 2004, 03:05:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scrappinhappy

I have a person who is having trouble uploading into my gallery.  SHe has never had problems before, and as far we both know, nothing has changed on either end.  But she is getting the following message:

"I tried to upload some cards to the gallery tonight, but I can't log in...there is message that says...."Warning your browser does not accept script's cookies"  "


Any ideas on what could be going on?  I had her check her security level on the cookies, and it is set at 'medium"

Help?

Carrie


kegobeer

What about her cookie settings?  It's under Privacy -> Advanced.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Casper

also, get her to check her computer internal clock is set correctly.  If it has gone out of time/date this can happen.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

SandrasXXX

I have added that zone as trusted, but it is the same thing...

kegobeer

Make sure your privacy settings are correct, not your security settings.  Click the Advanced button, and always accept cookies.  Also put a checkmark in the box to accept session cookies.

When you next visit the site, see if there's a little icon at the bottom right of your browser next to the Internet icon.  It'll be a little Do Not Enter sign.  See if IE is blocking the cookies from that site.

You can also try another browser, like Firefox or Mozilla, and see if you still have problems with the site.  Then you'll know if it's a browser issue or computer issue.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Lada

#5
Quote from: kegobeer on August 04, 2004, 09:26:19 PM
Make sure your privacy settings are correct, not your security settings.  Click the Advanced button, and always accept cookies.  Also put a checkmark in the box to accept session cookies.

When you next visit the site, see if there's a little icon at the bottom right of your browser next to the Internet icon.  It'll be a little Do Not Enter sign.  See if IE is blocking the cookies from that site.

I have this issue in IE 6 (v. 6.0.2800.1106 + SP1, W98SE)(IE 5 was OK). I have set it up like you described. No  icon does appear next to the Internet globe icon. Still get message
Warning your browser does not accept script's cookies  
When I login (as admin, no other account created) it says Welcome and returns me to the main page of CPH not logged  :(

BTW I did a search through this forum for cookies issues  and found out really strange thing-- Where some people claim to have problems I do not have. So it seems to OK set up cookies in my IE6 as well (like IE5 before). I attached my gallery to try it by someone more experienced. Please let me know if you  get the red warning message also. I guess the problem is somewhere inside the CPH.
http://www.cph_gallery.lam-sro.com/index.php
Login == Prihlasit  

Joachim Müller

Should be http://www.cph_gallery.lam-sro.com/index.php?lang=english ...
The login alone won't tell as long as you keep the password a secret. Make sure not to post an admin account (only a test user account).
Make sure your pc's clock is OK, and check the privacy option in IE's options. I suggest using another Browser (Firefox recommended).

Joachim

cooljonny

Hallo, I have the same problem. I have installed the copermine Gallary and logged in as admin but i have no permission to access the config.php and if I logg in in the album i return to the startpage but not logged in. In the logg in Site is this text "Warning your browser does not accept script's cookies" but i have allowed cookies. I cant understand it.

Here is my gallary: http://album.exoteninfo.com

kegobeer

In login.php, do a search for $HTTP_COOKIE_VARS.  Change this to $_COOKIE and see if your problem persists.

Also, create a simple phpinfo script called phpinfo.php:

<?php
phpinfo
();
?>


Upload it to your site, run it, and look for register_globals.  If it is set of off, it explains why you're getting this error.  $HTTP_COOKIE_VARS (depreciated as of php 4.1.0) needs this set to ON, but $_COOKIE does not.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

cooljonny

I have test it the rigister_global is on and if i change the variable in the login.php it doesn't work  to.

Lada

kegobeer I have also treid to rename the variable - did not help.
I have made the info file as you suggested
http://cph_gallery.lam-sro.com/info.php

kegobeer

Make sure to remove the file from the server, Lada.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kegobeer

In init.inc.php, around line 140, you should find this:

if (is_array($HTTP_COOKIE_VARS)) {

Right above it, put this:

echo 'cookie_vars is an array ' . is_array($HTTP_COOKIE_VARS) . '<br />';

Try to log into your site again, and report back with what is printed at the top of the screen.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kegobeer

#13
Also, go into login.php and right above

if (!isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {

put this

echo 'the cookie name is ' . $CONFIG['cookie_name'] . '<br />';

Report back with the results.  Also in config, tell us what you have in  Path of the cookie used by the script.

[edit]
By "config" I mean the config page in Coppermine.
[/edit]
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Lada

on the left top is
cookie_vars is an array 1
the cookie name is cpg132


In config for cookie path is "/"

kegobeer

Above

echo 'cookie_vars is an array ' . is_array($HTTP_COOKIE_VARS) . '<br />';

put this

echo 'cookie_vars is set ' . isset([$CONFIG['cookie_name']) . '<br />';

For you, Lada, I can only get this error if I visit your site with IE.  Firefox works great.
For you, cooljonny, I get this error with both browsers.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

cooljonny

That is not good, I would like to use this Gallery. Know someone what i can do? Please help me.

kegobeer

#17
cooljonny, please add the lines to your files so we can see the output.  Most likely this is a problem stemming from your use of a subdomain.  I'm hoping we can get this ironed out by modifying the cookie a bit.

Also, both of you please create a test user: username=test, password=test.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Lada

left top now
cookie_vars is set
cookie_vars is an array 1
the cookie name is cpg132

(BTW you have there a mistake with "["   - isset([$CONFIG['cookie_name'] )

account test/test created on the http://cph_gallery.lam-sro.com/index.php

cooljonny

OK Ihave put the code in the files.
And the Account is also created.

Username="test"
Password="ptest" (because i cant use the same for username and for password)

Link= http://album.exoteninfo.com