I have 2 servers viz. www.example.destination.com (destination server) and www.example.source.com (source server). I have some cookies set on destination server. I want to read those on source server. So, I have put img
tag on source server like this:
img src="http://www.example.destination.com/" style="display:none;"
Now, I am able to read the cookies from destination server to source server.
I opened the URL www.example.source.com in my browser. I have checked it in my Chrome Developers tool -> Application tab. It is showing all the cookies from source server as well as destination server.
But, when I use $_COOKIE
variable to access the destination server cookies in my source server php file, I am not able to get it.
So, how should I use the destination server cookies, that I have read it through img
tag.