Last post Feb 22, 2016 10:05 PM by craigber
Jan 29, 2016 10:14 PM|craigber|LINK
I need to save a cookie from the controller. In prior MVC versions this was done with
Response.Cookies.Add(new HttpCookie("CookieName", "Cookie text);
I see that Response.Cookies.Add is now Respons.Cookies.Append but HttpCookie can't be found in ASP.Net 5. I don't think I want to include System.Web to get it.
Feb 09, 2016 08:15 PM|Tan Silliksaar|LINK
You should reference System.Web if you want to add cookies to Response. You can see that it expects System.Web.HttpCookie as a parameter. There is no point in rewriting all classes in System.Web.Mvc, is there?
Feb 22, 2016 10:05 PM|craigber|LINK
That's not an option for ASP.NET 5