Darkchild
The Doctor
I'm trying to set cookies with the "setcookie" function in PHP...
example of the code :
the cookie is always empty!!
(yes, I set the cookies before the <html> tag... )
here's the "print_r" of the cookie:
though, if I reload the PHP, and set them for the second time, it works.
I don't get it (the code does arrive to the part where it sets the cookies, I checked)
example of the code :
PHP:
setcookie("data1", $data1, time()+3600);
the cookie is always empty!!
(yes, I set the cookies before the <html> tag... )
here's the "print_r" of the cookie:
Code:
Array ( )
though, if I reload the PHP, and set them for the second time, it works.
I don't get it (the code does arrive to the part where it sets the cookies, I checked)