This is the very simple code I am using to set a cookie in PHP:
setcookie("vgc_email", $userinfo['email']) or emsg("Unable to set cookie");
Error_reporting is set to E_ALL and is not giving an error, however, Unable to set cookie
is given when I attempt to run this code, and no cookie is set. I have made sure that $userinfo['email']
is not empty. I am also sure that I am able to receive cookies, when using Facebook connect is has set a cookie on the website.
So why won't this one work?