c# - Retrieving cookies from HttpResponse -


I have a controller action that I call through Ajax in which I set a cookie like this: / P>

  feedback. Cookies ["notifications"]. Value = "wrong"; answer. Cookies ["notifications"]. = Timeout expires. Now. Add Actual (1);  

In another controller action I am checking this cookie such as:

  if (requests. Cookies ["notifications"]! = Null & Amp; amp;  

The problem is that the request [cookies] ["notifications"] is always null. I have verified that the cookie is being set up through firebug, Testing through the studio in the studio web.

The problem is That I was also setting this:

  feedback. Cookies ["notifications"]. Secured = true;  

and of course not a cookie Is being sent because I am not using HTTP.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -