Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

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
0
webbingxia
Asked:
webbingxia
  • 2
  • 2
1 Solution
 
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
 
AzraSoundCommented:
"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
 
webbingxiaAuthor Commented:
y,thanks for your help.
Wish meet u at EE again... ...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now