Solved

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

Posted on 2001-06-12
4
218 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
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
0
 
LVL 1

Author Comment

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

Accepted Solution

by:
AzraSound earned 100 total points
ID: 6184366
"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
ID: 6184990
y,thanks for your help.
Wish meet u at EE again... ...
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
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.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

864 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

20 Experts available now in Live!

Get 1:1 Help Now