Ajax – Are Cookies set on client sent to Web Server between AJAX requests

ajaxcookies

basically i am setting cookie values on the client side (just session cookies, without any expiry date) and i am making ajax requests, now, in my ajax requests, i never get the updated cookie value as i've set in the client using javascript.

so, do ajax requests ignore sending updated cookie values from teh client to the server? or whats the deal with that?

if not, would viewstate which i update on client using javascript be sent to the server between ajax requests? i am developing in asp.net 4.0/vb.net/vs2010

Best Answer

Guess what? I figured it out, it was a logic error on my behalf... always remember to check...

If Page.IsPostBack Then

since ajax requests do call PageLoad every single time! - yep, my values were being reinitialized ot the initial values after each ajax request ;?!!!!

thanks