if (HttpContext.Current.User.Identity.AuthenticationType.ToUpper() != "FORMS")
{
FormsAuthentication.SignOut();
FormsAuthentication.RedirectToLoginPage();
}
else
{
HttpContext.Current.Response.Redirect("/_layouts/Signout.aspx");
}In sharepoint using javascript check page in sigout then redirect to login page.
