public static void ClearCookie()
{
try
{
HttpCookie userCookie = new HttpCookie("zzm");
userCookie.Expires = new System.DateTime(1999, 10, 12);
string domain = System.Configuration.ConfigurationManager.AppSettings["EJJJCookieDomainName"].ToString();
if (!string.IsNullOrEmpty(domain))
{
userCookie.Domain = domain;
}
HttpContext.Current.Response.Cookies.Add(userCookie);
HttpContext.Current.Session.Clear();
HttpContext.Current.Session.Abandon();
}
catch (Exception e)
{
//ExceptionService.Current.Handle(e);
}
}