title: how to read php cookies with javascript correctly
body: <p>consider this php and javascript code :</p>
  
  <pre><code>&lt;?php $_COOKIE['test']='123'; ?&gt;
  &lt;script&gt;console.log(document.cookie);&lt;/script&gt;
  </code></pre>
  
  <p>then what i see in console is :
  __utma=111872281.291759993.1444771465.1445374822.1445436904.4; __utmz=111872281.1444771465.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=8572f606897b1732c31a25dee29ca077</p>
  
  <p>i want to use the value of $_COOKIE['test'] in javascript ... but this strange string is not useful for me . how can i do that ?</p>