Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Save cookie from controller

$
0
0

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.

Any suggestions?


                       

Viewing all articles
Browse latest Browse all 9386

Trending Articles