I am using the below code to remove the a particular cookies.It's worked earlier. But it's not working now. Got error HttpContext.Current is null. I can't guess why it's happen now. Please clarify me.
if (HttpContext.Current.Request.Cookies[name] != null{
HttpContext.Current.Request.Cookies.Remove(name);
}
Please help me fix this.