开发者

Reading Browser Cookies ... jQuery

开发者 https://www.devze.com 2023-01-03 13:03 出处:网络
Is it possible for jQuery to read browser cookies i.e. cookies开发者_如何学C set by facebook? This would be a great help for my application if it was possible.Also, the answer is no. Your JavaScript w

Is it possible for jQuery to read browser cookies i.e. cookies开发者_如何学C set by facebook? This would be a great help for my application if it was possible.


Also, the answer is no. Your JavaScript won't be able to read cookies set by other websites. That's a security measure on browsers.

So at least for reading Facebook's cookies, there's no way to do it. Only to read cookies you've set for your own domain.


Your website at http://www.not_facebook.com will not be able to read cookies set by Facebook, jQuery or no jQuery. The browser won't send them to you, and your Javascript can't see them.

0

精彩评论

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

关注公众号