views:

637

answers:

1

So I am doing some fairly simple JSONP stuff using Jquery.

General structure

  • Site lives on domain A
  • Javascript lives on domain B
  • JSON services also live on domain B

The site calls a method which jsonp calls out to a json service (.net) , in .net i set the session and return.

This all works fine, except in IE it is not storing or passing the session id in subsequent requests.. So .net creates a new one every time.

If i go to the JSON url directly, ie happily stores it, and will use it on subsequent calls.

Firefox and chrome don't have any problem with this, but for some reason IE seems to be ignoring the session cookie through jquery, but the response works fine besides that.

A: 

A lot of browsers are more restrictive with their same origin policy than firefox. It is not an IE issue. The XHR / MSXML object is not accepting the cookie.

http://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy

Chad Grant