Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!
I need to share cookies across two domains. So I write cookies on domain A and want to be able to read it on domain B.
How can I do this?
Posted

1 solution

There is no way for domain A to set a cookie for domain B. Cookies can't be shared among different domain as this is a browser security issue.

There are some workaround given here which you can try

http://stackoverflow.com/questions/3342140/cross-domain-cookies[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900