Code to read a cookie in ASP.NET

string MyCookieValue;

if(Request.Cookies["MyCookieName"] != null)

{

MyCookieValue = Request.Cookies["MyCookieName"].Value;

}


0 comments:

Post a Comment