5
Is there any way I can access a cookie from a different domain?
For example: there is a cookie on facebook.com.br and I want to access cookie data within my site www.fulano.com.br .
5
Is there any way I can access a cookie from a different domain?
For example: there is a cookie on facebook.com.br and I want to access cookie data within my site www.fulano.com.br .
4
You cannot 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 receives cookies for you and then put this on a page on the 1st domain, in an iframe.
You obviously need full access to both domains to be able to do this kind of thing.
Browser other questions tagged web-application cookies
You are not signed in. Login or sign up in order to post.
What do you mean of a different domain? Cookies are stored on the customer’s computer.
– Sergio
@Sergio Type I have my website domain "meusite.com.br" I create a variable cookie visited there I have another site meusite2.com.br that I need to fetch this cookie from "meusite.com.br" if he entered that site... I learned that cookie can only be accessed by the same domain.
– TutiJapa Wada
Only if you have control over the website you want to get the cookie, otherwise no.
– Guilherme Nascimento