What is syntax for implementing Cookie ?
Sandeep Kumar
HttpCookie Cookie1 = new HttpCookie("Cookie name"); Cookie1 .Value = DateTime.Now.ToString(); //cookie time Cookie1 .Expires = DateTime.Now.AddDays(1);//cookie expired
HttpCookie sampleCookie = new HttpCookie("UserName"); sampleCookie.Value = "Bhuvan";
http://dotnet-munesh.blogspot.in/2013/12/cookies.html
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Syntax for implementing Cookie is Httpcookie object=new Httpcookie(); Cookie class object=new Cookie class();