Nathan,
Nathan said:
When AJAX makes a call and recieves a response, the response is not the
sending of a Response object, it is a call to a JavaScript function on the
page using AJAX. Cookies are set when the Response object is set because
what causes a cookie to be set are headers in the HTTP. Because the Response
object, which is what the other page is setting the headers in, does not get
sent, you are never actually telling the browser to set the cookies. I will
admit that I am not yet an expert in AJAX, but I think that this is if not
the exact reason for your problem, it has something to do with the reason
and should help you find it. Good Luck!
This is not correct. When you send a XmlHttpRequest using the Web
browser, the request sent is a perfectly normal request. The response to
that is a perfectly normal response. Granted, it will often contain XML
and not HTML, but HTTP responses can do that.
Cookies should be handled correctly in AJAX too.
To Mr. Sweaty Finger: You must make sure that the page setting the
cookies does this correctly. To do that, use Fiddler to watch the HTTP
traffic between your IE and the web server. This will help you find out
if the cookies are not set correctly, or if they are set correctly but
incorrectly received.
HTH,
Laurent