check cookie mvc code example
Example: check cookie mvc
public static int CookiesReturn()
{
HttpCookie cookie =HttpContext.Current.Response.Cookies["userName"];
if (cookie != null)
string username = Server.HtmlEncode(cookie.Value);
}
public static int CookiesReturn()
{
HttpCookie cookie =HttpContext.Current.Response.Cookies["userName"];
if (cookie != null)
string username = Server.HtmlEncode(cookie.Value);
}