ASP. General settings for the start Page: 1: In Web. config, add form authentication; <authentication mode= "Forms" > <forms name= "auth" loginurl= "Inde X.aspx "timeout=" ></forms> </authentication> <authorization> <deny users= "?"/> </au Thorization> 2: If there is a registration page should also allow anonymous users to call the registration page to register; The following code should be between <configuration><system.web>, and should not be included in the <SYSTEM.WEB> Between </system.web>; ----------------means that anonymous users are allowed access to the Userreg.aspx page. <location path= "userreg.aspx" > <system.web> <authorization> <allow users= "?"/> </authoriz Ation> </system.web> </location> 3 to create an authentication ticket after a successful login, indicating that a legitimate user has passed the certification; if (login succeeded) System.Web.Security.FormsAuthentication.SetAuthCookie (user name, false);
IIS Configuration ASPNET Start Page