There is a cookie sent in the request header on all of my CakePHP pages. Seen here:
My problem is how do I get that value from Javascript? document.cookie
returns ''
Sample request header (this is the first one, send to get the page):
GET /pages/view_media HTTP/1.1
Host: 192.168.1.11
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr-CA;q=0.6,fr;q=0.4
Cookie: CAKEPHP=n0r405fi68i395qhaa4luse8v6
EDIT: CakePHP version is 2.4.1
Alternately, if there is a way to get the CAKEPHP=n0r405fi68i395qhaa4luse8v6
value from the header that would work too. I just need the value.