Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8699829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:02:36+00:00 2026-06-13T02:02:36+00:00

Possible Duplicate: cross domain cookies I need a cookie to be available across multiple

  • 0

Possible Duplicate:
cross domain cookies

I need a cookie to be available across multiple domains. I know you can’t do it directly but am I able to do something like this:

  • user visits domain1
  • domain1 does a curl post to domain2
  • domain2 checks whether a cookie called ‘someCookie’ is already set. If it is then it returns some data to tell domain1 that it is already set, if not it returns some data to say its not set.
  • Now domain1 knows whether the cookie for domain2 is set or not

So basically domain2 always handles the cookie and just reports back to the other domains whether or not it is set or not. I will also need to set it from domain1 by calling a script on domain2 that sets the cookie.

I don’t know if any of this is possible but please let me know

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:02:37+00:00Added an answer on June 13, 2026 at 2:02 am

    the problem with your suggested solution is that cookies are saved at the client side. Thus, domain1 cannot simply contact domain2 to ask if a cookie exists.

    What you can do is having an iframe to domain2. Domain2 reads the cookie and sends some notification to domain1, telling domain1 that client X just accessed domain2 and has or has not the cookie set. However, this is a very hacky solution which will not work on all browsers.

    Passing data from one domain to another is a very complex task. The browser support for such things is very limited, since these things are usually used for malware purposes (cross site scripting). So, browsers intentionally limit the possible solutions in this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: JQuery ajax cross domain I need to load content from another websites
Possible Duplicate: Ways to circumvent the same-origin policy Is it possible to enable cross-domain
Possible Duplicate: Cross-Domain Requests with jQuery $(function () { (function getFeed() { $ .get('http://feeds.bbci.co.uk/news/world/rss.xml')
Possible Duplicate: C/C++ Image Loading I need a C\C++ cross-platform library for loading/displaying images(jpg,gif,png,tga).
Possible Duplicate: Why is cross-domain Ajax a security concern? I'm having a huge issue
Possible Duplicate: is it possible to get cross domain SOAP request using jquery please
Possible Duplicate: Ajax cross domain call I have Asp.Net Controller methods which return JSON
Possible Duplicate: How to change style of iframe content cross-domain? Hi everybody. Is it
Possible Duplicate: Cross platform programming I've written some code using wxwidgets in c++. But
Possible Duplicate: Cross-domain XHR/AJAX : a possible workaround? I tried to do a xmlHttpRequest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.