Smart    Lucky

Smart Lucky

  • NA
  • 555
  • 640.9k

Cookies

Aug 6 2011 6:55 AM
Hi

can any one tell me...?

Response.Cookies["UserSettings"]["Font"] = "Arial"; Response.Cookies["UserSettings"]["Color"] = "Blue"; Response.Cookies["UserSettings"].Expires = DateTime.Now.AddDays(1d);





HttpCookie myCookie = new HttpCookie("UserSettings"); // Is there UserSettings is name of cookie and where use it.....?
myCookie["Font"] = "Arial"; myCookie["Color"] = "Blue"; myCookie.Expires = DateTime.Now.AddDays(1d); Response.Cookies.Add(myCookie);

And what is difference b/w these type of cookie....?

Answers (3)