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: Warning your browser does not accept script's cookies  (Read 2799 times)

0 Members and 1 Guest are viewing this topic.

kevp75

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Warning your browser does not accept script's cookies
« on: February 12, 2004, 03:16:23 am »

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!!! :?:  :?:  :?:  :?:
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Warning your browser does not accept script's cookies
« Reply #1 on: February 12, 2004, 04:28:54 am »

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:

Code: [Select]

<?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:

Code: [Select]


<?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.
Logged
&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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Warning your browser does not accept script's cookies
« Reply #2 on: February 12, 2004, 10:09:35 am »

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.
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Warning your browser does not accept script's cookies
« Reply #3 on: August 04, 2004, 09:04:24 pm »

Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 14 queries.