How to remove the specific record and destroy a cookie?

Tripati_tutu
Posted by Tripati_tutu under ASP.NET category on | Points: 40 | Views : 2882
To remove the specific record from cookie that is specific key vale, use
CookieName.Values.Remove("Products");


To destroy or delete a cookie, use
CookieName.Expires = DateTime.Now.AddDays(-1);

Comments or Responses

Login to post response