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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:36:29+00:00 2026-05-27T07:36:29+00:00

I am using JSONP to answer AJAX calls on a different server than the

  • 0

I am using JSONP to answer AJAX calls on a different server than the site is on. It works pretty well, except that on IE, I can’t maintain a session.

The site answering the request uses Java Servlets. It works in Firefox, but I in IE I have problems because it doesn’t accept the cookies. (I can make it work by changing the security settings.)

From there I tried putting the sessionid in the url of the request:

listAction: server+’/site/gateway.jsp?current=page&next=something&jsessionid=’+session+’&callback=?’

(I write callback=? because I am using jQuery and that is how you can do Jsonp.)

It still doesn’t work. Did I write the session wrong? Is it still looking at my cookies? Can I possibly configure my servlet to load the session that I want it to load?

  • 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-05-27T07:36:29+00:00Added an answer on May 27, 2026 at 7:36 am

    This is actually the same problem that you get with iFrames. You need to set a p3p header.

    request.setheader(‘P3P: CP=”NOI ADM DEV COM NAV OUR STP”‘);

    Why does IE block you from using cookies with JSONP, but allow you if you just add some header? Who knows. The header represents a privacy policy. And I guess they don’t think malicious hackers will be dishonest about their privacy policy.

    If you sell information about your users or have other reasons to worry about a lawsuit from your users, you should make sure your p3p header accurately reflects your privacy policy, so you’ll have to do a bit more research.

    This is the same question but about the iFrames: Cookie blocked/not saved in IFRAME in Internet Explorer

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

Sidebar

Related Questions

We are using the Dynamic Script Tag with JsonP mechanism to achieve cross-domain Ajax
I need to update a section on my site frequently using ajax, jquery, and
I have a script that retrieves objects from a remote server through an Ajax
I am try to get a URL from a one server and using that
Is it possible to make AJAX-calls (e.g. using jQuery.ajax() ) from local html/js file
I have an ajax call (JSONP) using JQuery with GET method. I think because
i'm using tinyMCE and i can't find the answer for this in their forums.
I've got a AJAX call that returns a JSON string containing several different DateTimes.
ANSWER: The problem is that I am trying to make a cross-domain call using
I plan on using JSONP to call an external web service to get around

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.