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
Re: setcookie() returns FALSE [message #179699 is a reply to message #179698] Fri, 23 November 2012 08:53 Go to previous messageGo to previous message
Olaf S. is currently offline  Olaf S.
Messages: 10
Registered: December 2011
Karma:
Junior Member
Am 23.11.2012 07:26, schrieb cerr:
> 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!
>
You many *NOT* output *ANY* Code, before you use setcookie.
NOT any whitespace, not <head> or <html>...or..or
[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: Thu Nov 28 13:43:49 GMT 2024

Total time taken to generate the page: 0.04431 seconds