ASP.NET About Form Certification General Settings:

xiaoxiao2021-03-06  21

ASP.NET About Form Certification General Settings: 1: In Web.config, add FORM certification; 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 .. ; ---------------- means allowing anonymous users to use UserReg .aspx page access. 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);

转载请注明原文地址:https://www.9cbs.com/read-43786.html

New Post(0)