Interviews9 answers
What is syntax for implementing Cookie ?
9 Answers
HttpCookie Cookie1 = new HttpCookie("Cookie name");
Cookie1 .Value = DateTime.Now.ToString(); //cookie time
Cookie1 .Expires = DateTime.Now.AddDays(1);//cookie expired
Nikhil SanganiPosted Jun 6, 2016, 3:19 AM EDT
HttpCookie sampleCookie = new HttpCookie("UserName");
sampleCookie.Value = "Bhuvan";
Bhuvanesh MohankumarPosted Jun 1, 2016, 5:17 AM EDT
http://dotnet-munesh.blogspot.in/2013/12/cookies.html
Munesh SharmaPosted May 30, 2016, 8:41 PM EDT
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Keerthi VenkatesanPosted May 12, 2016, 11:43 PM EDT
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Keerthi VenkatesanPosted May 12, 2016, 11:42 PM EDT
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Rubiya RajamanickamPosted Apr 27, 2016, 2:10 AM EDT
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Posted Jan 9, 2016, 1:44 AM EST
HttpCookie aCookie = new HttpCookie("lastVisit");
aCookie.Value = DateTime.Now.ToString();
aCookie.Expires = DateTime.Now.AddDays(1);
Ravi PatelPosted Dec 31, 2015, 12:52 AM EST
Syntax for implementing Cookie is
Httpcookie object=new Httpcookie();
Cookie class object=new Cookie class();
Sandeep KumarPosted Dec 29, 2015, 1:18 AM EST






