tags:

views:

34

answers:

3

Is it possible for jQuery to read browser cookies i.e. cookies set by facebook? This would be a great help for my application if it was possible.

A: 

this a duplicate question...

the answer was:

See here: http://plugins.jquery.com/project/cookie

Garis Suero
He actually wants to be able to get cross-domain cookies.
Aaron Harun
+1  A: 

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.

Miguel Ventura
A: 

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.

Pointy