I have a controller action that I call via Ajax in which I set a cookie like this:
Response.Cookies["Notifications"].Value = "false"; Response.Cookies["Notifications"].Expires = DateTime.Now.AddYears(1); In another controller action I am checking for this cookie like this:
if(Request.Cookies["Notifications"] != null && Request.Cookies["Notifications"].Value =="false") //Do something here The problem is that Request.Cookies["Notifications"] is always null. I have verified that the cookie is getting set via FireBug. I'm testing this via visual studio's web built in web server.