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 8301335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:54:08+00:00 2026-06-08T16:54:08+00:00

Due to cross domain issues, I decided to try a new workaround for detecting

  • 0

Due to cross domain issues, I decided to try a new workaround for detecting sessions between 2 of my domains. I assumed this process would work as I wasn’t trying to set any cookies, and it works fine in chrome and firefox, but not in IE9.

I have stepped through in debug mode and the aspx page I request has no access to it’s own Request.Cookies, whereas it does when I use chrome.

The process is:

On domain1, (an asp.net mvc application) the user logs in. As part of that login process, a cookie is set on that domain. If I then hit a test page on this server, I can see the cookie has been set.

On domain2 (an asp.net webforms app), I make a jQuery.ajax request to that test page on domain1, which is meant to check for the cookie and return an encrypted string.

When stepping through during this request to domain2 when called via ajax I can see the request.cookies collection is not populated. Frustratingly, User.Identity.IsAuthenticated is true, but I can’t get access to the cookie I set.

Is this just another example of the whole cross domain security in action? To me it seems even making the ajax call using jsonp and all the other various hheaders etc, isn’t going to help in this situation as it appears to be something more than that?

  • 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-08T16:54:10+00:00Added an answer on June 8, 2026 at 4:54 pm

    It seems that you’re correct in your assumption. JQuery will by default not send cookies if its connected to a domain that is not the same as the domain the page is on.

    You can try using the xhrFields from the JQuery API to perform the cross domain call.

    $.ajax({
    url: a_cross_domain_url,
    xhrFields: {
       withCredentials: true
    }
    });
    

    http://api.jquery.com/jQuery.ajax/

    Hope that helps!

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

Sidebar

Related Questions

Due to weird domain/subdomain cookie issues that I'm getting, I'd like to know how
I'm having issues with jquery's $.post function, and (what I think) the cross-domain security
Due to a sad situation I receive HTML like this: <p>Perform the following commands:
Due to some css limitations between IE and the rest of the world I
Due to the lack of documentation for this on MSDN, I am forced to
I am doing a cross domain request using $.ajax . It works on Firefox
I have a typical setup for cross domain. site1.company.com site2.company.com Main application is running
I am attempting to write a user script that makes a cross domain AJAX
I'm trying to cross-compile a 64-bit executable on a 32-bit ubuntu system. This works
I have cross domain iframe which is missing some of the accessibility attributes. Now

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.