Solved

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

Posted on 2001-06-12
4
216 Views
Last Modified: 2012-05-04
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
Comment
Question by:webbingxia
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:AzraSound
Comment Utility
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
 
LVL 1

Author Comment

by:webbingxia
Comment Utility
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
 
LVL 28

Accepted Solution

by:
AzraSound earned 100 total points
Comment Utility
"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
 
LVL 1

Author Comment

by:webbingxia
Comment Utility
y,thanks for your help.
Wish meet u at EE again... ...
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now