Quit asp.net user via sql?

Can I force logout of SQL for an asp.net membership account?

0
source share
2 answers

No record of registered users is stored in forms authentication mode, so it would be impossible to log out using any SQL execution.

Note that a data store, such as SQL, is only used during the actual authentication authentication phase during the forms life cycle:

forms authentication control flow http://i.msdn.microsoft.com/Aa480476.formsauth(en-us,MSDN.10).gif

Form authentication typically uses client-side cookies to process registered users.

Source: Explanation: Form Authentication in ASP.NET 2.0

+1
source

For forms authentication you can use:

FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); 

If you are trying to do this through Windows Authentication, see this .

+1
source

Source: https://habr.com/ru/post/1338541/


All Articles