Cannot View Cookies
Posted: Tue May 29, 2007 8:18 am
Everah | Please use
It's returns nothing (not returning "hello". even after I've clicked "Refresh").
Does anyone knows what's might be causing this problem?
Thanks! That's really important...
Eyal
Everah | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
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:
PHP Code:Code: Select all
<?
setcookie("super_password", "hello", time()+3600, "/");
echo "the cookie is ".$_COOKIE["super_password"];
?>Does anyone knows what's might be causing this problem?
Thanks! That's really important...
Eyal
Everah | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]