title: Why won't PHP set my cookie (No errors)
body: <p>This is the very simple code I am using to set a cookie in PHP: </p>
  
  <pre><code>setcookie("vgc_email", $userinfo['email']) or emsg("Unable to set cookie");
  </code></pre>
  
  <p>Error_reporting is set to E_ALL and is not giving an error, however, <code>Unable to set cookie</code> is given when I attempt to run this code, and no cookie is set. I have made sure that <code>$userinfo['email']</code> 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?</p>