I am making a WebView app and I want to pass a cookie from one domain to other, e.g. abc.com
to xyz.com
.
I have both PHP and JS access where the cookie is stored and on the other side I have only JS access.
I am making a WebView app and I want to pass a cookie from one domain to other, e.g. abc.com
to xyz.com
.
I have both PHP and JS access where the cookie is stored and on the other side I have only JS access.
Well, as you may know its not possible to set a cookie which be accessible on two quite different domains. But it has some other tricks. What I came up is top send your cookie from one domain with cross domain AJAX or some simple web service to another domain and upon recieve set the cookie on targeted domain.
Cookie on abc.com -> send cookie via web service to xyz.com -> recive cookie and set cookie on xyz.com