The Tech Pursuit
The Dev Shelf
Pages
Home
Interview Questions
About Me
June 9, 2011
Insert and read data from Cookie in ASP.Net
HttpCookie Abc = new HttpCookie("xyz");
Abc.value = "TestVal";
Abc.Expires = Datetime.Now.Addseconds(20);
Response.Cookies.Add(Abc);
Read value From Cookies
string cookieVal = Request.Cookies["xyz"];
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment