How to disable previous cookies programatically?
I have a textbox with calender with min days & max days condition.When I fill the application next 4-5 days,If I click on that textbox, it will shows previous date in cookies. So how to disable that cookies programmatically ?
Sujeet SumanPosted Jun 23, 2015, 7:42 AM
{
HttpCookie myCookie = new HttpCookie("UserSettings");
myCookie.Expires = DateTime.Now.AddDays(-1d);
Response.Cookies.Add(myCookie);
}
Upendra Pratap ShahiPosted Jun 23, 2015, 5:58 AM