can i set(or get) cookie under other domain?

HI EE,
I have a question,wish u can help me.

As the question title,
and more...
At a.com ,can I get cookies value which was set at b.com?
Or can I set cookies under b.com when the html page is at a.com?

y,that's all,thanks for your reading  

           webbing
LVL 1
webbingxiaAsked:
Who is Participating?
 
AzraSoundConnect With a Mentor Commented:
"Determining if your Visitors have JavaScript and Cookies Enabled"
http://www.4guysfromrolla.com/webtech/082400-1.shtml

this is client side script that is independent of what domain the page came from
0
 
AzraSoundCommented:
for security reasons, no.  it seems there was a bug in IE a while back where one could do this but they put out a patch shortly thereafter
0
 
webbingxiaAuthor Commented:
hi AzraSound,
U know,Why I ask that?
I want detect whether the cookie is opened at user's browser.I use the normal method: set a temp cookie and get it to detect.
But for some reason,the function should work under two different domain.So ...

Dear AzraSound,Do u have other method to DO so -- DETECT COOKIES ENABLE?
I want the answer... thanks
0
 
webbingxiaAuthor Commented:
y,thanks for your help.
Wish meet u at EE again... ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.