title: cant set cookie?
body: <p>I am using </p>
  
  <pre><code>public function setCookie() {
    $value = $this-&gt;info('id').':'.$this-&gt;info('salt');
    //$value == '1:0842d579c6c9f08401d7204240d06930'
    $expire = (time()+((3600*24)*365));
    return setcookie("remember", $value, $expire);
  }
  </code></pre>
  
  <p>and it is returning true,</p>
  
  <p>but when i print out <code>$_COOKIE</code> on the next page the only cookie set is the php sess id.</p>
  
  <p>Why is it not setting?</p>
  
  <p><hr />
  <strong>Notes</strong><br />
  The page that sets the cookie is requested through ajax.<br>
  The current page/ajax'd page/next page are all on the same domain name<br>
  Nothing is sent before the cookie is  set</p>