Question : check cookie mvc
Answered by : poised-parrot-sblqdjjgxlb5
public static int CookiesReturn() { HttpCookie cookie =HttpContext.Current.Response.Cookies["userName"]; if (cookie != null) string username = Server.HtmlEncode(cookie.Value); }
Source : https://stackoverflow.com/questions/43962199/how-can-i-read-cookies-in-asp-net-mvc-method | Last Update : Wed, 15 Jul 20