matiascx
asked on
How can javascript read cookie cross-domain?
Dear experts,
I have following requirement:
1. I have www.mydomain.com website,
2. I have put javascript in the mydomain.com page;
3. When user access mydomain.com, the javascript is loaded to the user's browser;
4. the javascript should access some cookies which set by www.otherdomain.com
How can i implement that, or is there any workaround solution to do that?
Thanks!
I have following requirement:
1. I have www.mydomain.com website,
2. I have put javascript in the mydomain.com page;
3. When user access mydomain.com, the javascript is loaded to the user's browser;
4. the javascript should access some cookies which set by www.otherdomain.com
How can i implement that, or is there any workaround solution to do that?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your response.
It is a little depressed for me to hear about that.
Can you give more explaination on your proposal?
I can not understand. If the both domain is under my control, how to implement that?
If the otherdomain.com is not under my control, is it possible to read the cookie via the js in mydomain.com?
I am invstigating possible solutions for that scenario.
Thanks again.