Link to home
Start Free TrialLog in
Avatar of matiascx
matiascxFlag for China

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!
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of matiascx

ASKER

Hi, Cd,
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.
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial