Sharepoint Check AuthenticationType Redirect Page

  1. if (HttpContext.Current.User.Identity.AuthenticationType.ToUpper() != "FORMS")  
  2. {  
  3.        FormsAuthentication.SignOut();  
  4.        FormsAuthentication.RedirectToLoginPage();  
  5. }
  6.   
  7. else  
  8. {  
  9.        HttpContext.Current.Response.Redirect("/_layouts/Signout.aspx");  
  10. }