9
Reply

What is syntax for implementing Cookie ?

Sandeep Kumar

Sandeep Kumar

8 years ago
1.7k
0
Reply

    HttpCookie Cookie1 = new HttpCookie("Cookie name"); Cookie1 .Value = DateTime.Now.ToString(); //cookie time Cookie1 .Expires = DateTime.Now.AddDays(1);//cookie expired

    Nikhil Sangani
    8 years ago
    1

    HttpCookie sampleCookie = new HttpCookie("UserName"); sampleCookie.Value = "Bhuvan";

    http://dotnet-munesh.blogspot.in/2013/12/cookies.html

    Munesh Sharma
    8 years ago
    0

    HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);

    HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);

    HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);

    HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);

    Kml Surani
    8 years ago
    0

    HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);

    Ravi Patel
    8 years ago
    0

    Syntax for implementing Cookie is Httpcookie object=new Httpcookie(); Cookie class object=new Cookie class();

    Sandeep Kumar
    8 years ago
    0