Can I force a log out through SQL for asp.net membership account?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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