private static void CleanupCookies() { if (System.Web.HttpContext.Current != null) { HttpContextBase httpContext = new HttpContextWrapper(System.Web.HttpContext.Current); httpContext.CleanupCookies(); } }