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

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

Warning your browser does not accept script's cookies

Started by kevp75, February 12, 2004, 03:16:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kevp75

I've done every thing I could think of to correct this error, deleting all cookies restarting the PC, Accepting all cookies. and I still get this error.

I am a newbie to PHP, so I don't even know where to begin looking.  The site is hosted on another machine on my LAN, running windows 2000 on IIS.  I have the lates versions of PHP and mySQL installed

PLEASE HELP!!! :?:  :?:  :?:  :?:

hyperion

If you have rules out the browser as the source of the problem, you should check your php.ini to see what you have told PHP to do with the Cookie superglobal variables.  

This means checking to see if register_globals is off and if variables_order is set to "EGPCS".  

Also, you might check to see if the problem arises from the choice of name for the cookie variable. (This might arise in PHP 5, but I haven't played with 5 yet to be sure of this.) To do this, try the following script:


<?php

setcookie
&#40;"car", "GM", time&#40;&#41;+3600, "/", "your_domain_name_here.com", 0&#41;;

if &#40;isset&#40;$_COOKIE['car'&#93;&#41;&#41; &#123;
    
    
print "You like $_COOKIE['car'&#93;.";

&
#125; else &#123;

    
print "This is your first visit, or the cookie has not been set.";

&
#125;
?>



Change your_domian_name_here.com to what ever the domain name is for your site. Then save the file in plain text as cookie_test.php.  Check to make sure .php is the only extension (not .php.txt). Run the script by typing it's URL into the address bar of your browser. It will tell you this is your first time, etc.  Then hit the refresh button. If all is well, it will tell you that you like GM.  If not, the same message will appear on the screen.

Try the script again, but this time use:



<?php

setcookie
&#40;"car", "GM", time&#40;&#41;+3600, "/", "your_domain_name_here.com", 0&#41;;

if &#40;isset&#40;$HTTP_COOKIE_VARS['car'&#93;&#41;&#41; &#123;
    
    
print "You like $HTTP_COOKIE_VARS['car'&#93;.";

&
#125; else &#123;

    
print "This is your first visit, or the cookie has not been set.";

&
#125;
?>




This is the same, but with a different way of calling the cookie.

Also, try accessing Coppermine from different computers with different browsers just in case your browser is defective.

Another good idea would be to delete the cookies in the browser, the login to Coppermine.  At this point, open the temprorary internet files to see if the Cookie actually made it on to your system.  If it did, but Coppermine cannot recognize it, it would suggest that there is some issue with the domain name in the cookie not being the same as the domain name trying to access the cookie.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Casper

this has also been found to be caused if the server coppermine is on has the time/date incorrectly set.  Try resetting the clock on the machine the app is on.
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