开发者

JQuery and PHP Cookies

开发者 https://www.devze.com 2023-03-29 02:22 出处:网络
Let\'s say开发者_运维技巧 I make a cookie using jQuery\'s Cookie Plugin: $.cookie(\'Cookie\', \"Cookie Value\", 1);

Let's say开发者_运维技巧 I make a cookie using jQuery's Cookie Plugin:

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

Can I read it using php with:

echo $_COOKIE["Cookie"];


Yes.

The cookie is sent back with every HTTP GET or POST to the server made from the domain/path the cookie is set to, until it expires.

0

精彩评论

暂无评论...
验证码 换一张
取 消