In php I set a cookie, now I need it on another page of the same site via javascript. I entered the following code in the address bar and got an empty line.
javascript:alert(document.cookie);
On the site Google, for example, everything works, displays. Checked through Chrome - everything is fine, exists, matters and is enabled for scripts (HttpOnly is disabled). I created a new php file and requested a cookie through the $ _COOKIE array, I got it, everything is fine, but I still can't get through JS!