title: PHP Can't read cookies?
body: <p>I like to use PHP to see if a cookie <code>PHPSID27258STATUS</code> is present with the value <code>COMPLETE</code> en if so do stuff.</p>
  
  <p>In google chrome (in Options) I can see this cookie is present and has the value <code>COMPLETE</code>.</p>
  
  <p>If I run this PHP script I get 'Not Set'. What am I doing wrong here?</p>
  
  <pre><code>$cookiename="PHPSID27258STATUS";
  if (isset($_COOKIE[$cookiename]) &amp;&amp; $_COOKIE[$cookiename] == "COMPLETE")
  </code></pre>
  
  <p>--update<br>
  The cookie is set by "limesurvey" an open source survey platform. Although its probably not the best way. I use limesurvey to have a small survey (iframe) on an site i'm building. I like to let the survey disappear on the next visit when it has bin posted. 
  Limesurvey runs from the same host (localhost now). And is in a sub directory of the site.</p>
  
  <p>I guess (but there's a lot of code in LS) this is how the cookie is made after an poll/post is completed.</p>
  
  <pre><code>$cookiename="PHPSID".returnglobal('sid')."STATUS";
  setcookie("$cookiename", "COMPLETE", time() + 31536000); //Cookie will expire in 365 days
  </code></pre>