updatepanels use ajax to postback via XMLHttpRequest. the ajax request
will send the browser cookies, but the browser does parse the response
headers, so it will not see a cookie headers added.
this means if you set a cookie is a partial update, the browser will not
see, and can not send on a full post. this is why partial page updates
do not update session/login cookie timeouts.
-- bruce (sqlwork.com)
> Is anyone finding that cookies added to the Response.Cookies collection
> within pages which contain an UpdatePanel do not exist in the
[quoted text clipped - 6 lines]
> handling the postback even in this case and does not handle Cookies properly
> ...
John Grandy - 28 Jul 2007 01:22 GMT
But I'm not adding/setting my cookies during a partial update. I'm using
Page.Response.Cookies.Add during the initial page load ... but on post back
Page.Request.Cookies does not contain the cookie.
> updatepanels use ajax to postback via XMLHttpRequest. the ajax request
> will send the browser cookies, but the browser does parse the response
[quoted text clipped - 16 lines]
>> XmlHttpRequest is handling the postback even in this case and does not
>> handle Cookies properly ...