HttpCookie cookie = Request.Cookies[FormsAuthentication.FormsCookieName];
if (cookie != null)
{
FormsAuthentication.SignOut();
}
Request.Cookies.Clear();
HttpContext.Current.Response.Cookies[FormsAuthentication.FormsCookieName].Value = null;
HttpContext.Current.Response.Cookies[FormsAuthentication.FormsCookieName].Expires = DateTime.Now.AddHours(-100);
HttpContext.Current.Session.Abandon();
Response.Write("<script>window.navigate('Login2.aspx');</script>");