JQuery and PHP Cookies

Let's say I make a cookie using jQuery Cookie Plugin:

$.cookie('Cookie', "Cookie Value", 1); 

Can I read it with php using:

 echo $_COOKIE["Cookie"]; 
+6
source share
1 answer

Yes.

A cookie is sent with each HTTP GET or POST to a server made from the domain / path to which the cookie is set, before its expiration.

+10
source

Source: https://habr.com/ru/post/895215/


All Articles