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

Posted on 2001-06-12
Medium Priority
Last Modified: 2012-05-04
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  

Question by:webbingxia
  • 2
  • 2
LVL 28

Expert Comment

ID: 6184267
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

Author Comment

ID: 6184313
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
LVL 28

Accepted Solution

AzraSound earned 400 total points
ID: 6184366
"Determining if your Visitors have JavaScript and Cookies Enabled"

this is client side script that is independent of what domain the page came from

Author Comment

ID: 6184990
y,thanks for your help.
Wish meet u at EE again... ...

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

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.

Join & Write a Comment

Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
The Super Bowl is just days away. Millions of advertising dollars will be spent in just a few hours to drive people to websites around the globe. Optimizing your site in anticipation of a big event like this (and the traffic surges that follow) will…
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question