Sandeep Kumar
What is syntax for implementing Cookie ?
By Sandeep Kumar in ASP.NET on Dec 29 2015
  • Nikhil Sangani
    Jun, 2016 6

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

    • 1
  • Bhuvanesh Mohankumar
    Jun, 2016 1

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

    • 0
  • Munesh Sharma
    May, 2016 31

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

    • 0
  • Keerthi Venkatesan
    May, 2016 13

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

    • 0
  • Keerthi Venkatesan
    May, 2016 13

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

    • 0
  • Rubiya Rajamanickam
    Apr, 2016 27

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

    • 0
  • Kml Surani
    Jan, 2016 9

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

    • 0
  • Ravi Patel
    Dec, 2015 31

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

    • 0
  • Sandeep Kumar
    Dec, 2015 29

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

    • 0