ASP.NET FORMS certification process

xiaoxiao2021-03-06  56

User-based Forms authentication 1. Read cookies to obtain authentication information user.Identity.isauthenticated2. Is certified, allowed to browse page 3. Unauthenticated, jump to login page 4. Login verification user 5. Correctly, user authorization Cookie, jump to the browser page FormsAuthentication.SetAuthCookie (UserEmail.Value, PersistCookie.Checked); string url = FormsAuthentication.GetRedirectUrl (UserEmail.Value, PersistCookie.Checked); Response.Redirect (url); // write cookie // FormsAuthentication .RedirectFromloginPage (usemail.value, persistCookie.checked); 6. Not correct, prompt error, no jump

Role-based Forms authentication 1. Read cookies to obtain authentication information 2. Certified, turn 43. Unauthenticated, jump to the login page 4. Read the corresponding Roles, set the role 5. Correct roles, allow the page 6 Incorrect role, jump to the login page 7. Log in to verify the user 8. Correctly, set up ROLES, the user authorizes to write the cookie, jump to the browse page 9. Not correct, prompt error, no jump

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

New Post(0)