title: why does this cookie set in PHP keep returning null?
body: <p>I am trying to set some cookie variables token variables received from twitter and am realizing that I keep getting a null variable for objects that are clearly not null...even for explicitly defined strings. Here is the specific code section I am working with though </p>
  
  <pre><code>var_dump($token-&gt;oauth_token);
      var_dump($token-&gt;oauth_token_secret); // these are not null
  
          // Attempt to save to cookies
      setcookie('oauth_token', $token-&gt;oauth_token);
      setcookie('oauth_token_secret', $token-&gt;oauth_token_secret);
      var_dump($_COOKIE['oauth_token']); //these cookie variables are null...holds true even for //simple strings...not just the complex twitter objects im working with...happens on chrome //and IE
  </code></pre>
  
  <p>All help is appreciated!</p>