ASP.NET About Form Certification General Settings: 1: In Web.config, add FORM certification; forms> authentication> authorization> 2: If there is a registration page, you should also allow anonymous users to call the registration page for registration; the following code should be in Between System.Web>, it should not be included between .. system.web>; ---------------- means allowing anonymous users to use UserReg .aspx page access. authorization> location> 3 Login After successful, create an authentication ticket, indicating that the legal user has been certified;
IF (login success)
System.Web.Security.FormSauthentication.seTauthCookie (User Name, False);