Hi Everyone,
I created a script in my computer and the cookies worked just fine, but now after I've uploaded it to a server for some reason php cannot read the cookies.
For Example, when I've uploaded this code:
<?
setcookie("super_password", "hello", time()+3600, "/");
echo "the cookie is ".$_COOKIE["super_password"];
?>
It's returns nothing (not returning "hello". even after I've clicked "Refresh").
I tried the following things:
- I divided the script into 2 pages - one sets the cookie and reads it
- I checked the cookies in my browser and it's ok
- I used print_r($COOKIE["super_admin]); instead of echo $COOKIE["super_admin"];
- I removed the "/" domain section in the setcookie function
This Problem Happens only in IE - no matter what the privacy level is (even if it's accepts all cookies!)
Does anyone knows how can I solve this problem?
Thanks! That's really important...
Eyal