Sunday, 30 December 2012

Cookies example in ASP.net

Add Value in Cookies

 Response.Cookies["Cookies"].Value = txtEmailID.Text;
Response.Cookies["Cookies"].Expires = DateTime.Now.AddMonths(2);

Get Value From Cookies

Request.Cookies["Cookies"]

Clear Cookies

Response.Cookies.Clear();

No comments:

Post a Comment