Is there a way to access a cookie from a different domain?

5

Is there any way I can access a cookie from a different domain?

For example: you have a cookie on facebook.com and I want to access cookie data inside my site www.fulano.com.br.

    
asked by anonymous 12.02.2016 / 20:09

1 answer

4

You can not read cookies from another domain, this is fact.

The only way I can think of is to add some code to the second domain that gets the cookies for you, and then put that on a 1st domain page in an iframe.

You obviously need full access to both domains to be able to do this sort of thing.

    
12.02.2016 / 20:44