public static void Redirect(string url, clearCookies)
{
//C# clear cookie: Add header cookie
HttpContext.Current.Response.AddHeader("Cookie", "");
// HttpContext.Current.Response.Cookies.Clear(); // This does NOT work
HttpContext.Current.Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
HttpContext.Current.Response.AddHeader("Pragma", "no-cache");
HttpContext.Current.Response.Redirect(url, false);
HttpContext.Current.Response.StatusCode = 302;
HttpContext.Current.ApplicationInstance.CompleteRequest();
}
61200cookie-checkC# asp.net clear cookies