Answers for "check cookie mvc"

0

check cookie mvc

public static int CookiesReturn()
 {
   HttpCookie cookie =HttpContext.Current.Response.Cookies["userName"];
   if (cookie  != null)
   string username = Server.HtmlEncode(cookie.Value);
  }
Posted by: Guest on July-08-2020

Browse Popular Code Answers by Language