FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » setcookie() returns FALSE
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
setcookie() returns FALSE [message #179698] Fri, 23 November 2012 06:26 Go to previous message
cerr is currently offline  cerr
Messages: 33
Registered: September 2010
Karma:
Member
Hi,

I have the following code:
if(setcookie("FSBO", "TEST", time()+3600)) {
echo "TRUE<br>";
} else {
echo "FALSE<br>";
}
print_r($_COOKIE);
and the ouput on my box is false. How do I know why I can't set a cookie?
Thank you!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: PHP 5.5 and Windows XP
Next Topic: Tokenize an HTML page.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 13:53:49 GMT 2024

Total time taken to generate the page: 0.04969 seconds