Can I force a log out through SQL for asp.net membership account?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Carriage Return (ASCII chr 13) is missing from tex
- Difference between Types.INTEGER and Types.NULL in
- How to store image outside of the website's ro
For forms authentication you can use:
If you are trying to do this through Windows authentication see this.
No record of currently logged in users are stored in Forms Authentication mode so it would be impossible to log out a user by some SQL execution alone.
Note that a data store like SQL is only used during the actual credential authentication step of the Forms Authentication lifetime:
Forms authentication control flow http://i.msdn.microsoft.com/Aa480476.formsauth(en-us,MSDN.10).gif
Forms Authentication generally utilizes client-side cookies to handle currently logged in users.
Source: Explained: Forms Authentication in ASP.NET 2.0