PDA

View Full Version : [Help] php - Cookie



k4knight
06-09-2008, 12:24 PM
Cookie doesn't work in my website.

My code is like this:

setcookie(...);
print_r($_COOKIE);

I've successfully debugged it on my localhost. the output of 'print_r‘ told me that a cookie is set by the previous function. However, when i upload my code to the remote host, the cookie just cannot be set.

This really confused me. Anyone have an idea about this?