I've got an account on coolfreepages.com and I've written an admin script that requires a user to log in before administrating the site. coolfreepages is using an older version of php due to the fact that I must use $HTTP_COOKIE_VARS instead of $_COOKIE My problem is that I can't set the cookie. I use
setcookie("admin",1,time()+300);
it returns true (I've checked) but when I use
print_r($HTTP_COOKIE_VARS);
it returns an empty array.
I know that my script works on my local machine so is there anything I can do?