title: PHP $_COOKIE returns null BUT Chrome shows cookie with correct value
body: <p>Im trying to set custom cookies in wordpress without success, so i thought it might be because of the cache and set up a small test on my localhost apache and have the same problem.</p>
  
  <p>In Chrome the cookies "chat_guest" and "chat_guest_hash" are visible but when trying to get their value it returns "null" .</p>
  
  <p>In the example code I use var_dump to see if their is any cookie with value but it returns <code>array(0) { }</code> and still, the cookies are shown in Chrome!</p>
  
  <pre><code>&lt;?php
  
  
  
  if(!isset($_COOKIE['chat_guest'])) {
      if (!setcookie('chat_guest', "test1", 365 * 3000, "/")) die("?? 1");
      if (!setcookie('chat_guest_hash', "test", 365 * 3000, "/")) die("?? 2");
  }
  
  echo var_dump($_COOKIE);
  ?&gt;
  </code></pre>
  
  <p>I just cant get behind this. Any ideas?</p>