Hi All,
I'm using formsAuthentication and as an admin user to the site i would like to be able to sign another user out. Is this possible ?
Hi All,
I'm using formsAuthentication and as an admin user to the site i would like to be able to sign another user out. Is this possible ?
No it's not. You could probably write something that intercepts authentication, and if it detects a user in the list of users to be logged out does it, but even then what happens if a session times out due to inactivity? The user would never have hit that authentication event and would still be queued.
You could do the following:
And as an administrator you could update the list of users to be signed out.
Yes it is and you dont even need to write a HttpModule to do it: FormsAuthenticationModule.Authenticate. Simply have your event handler take a look at the incoming user and if its in some list of people to be signed out remove them from the list & sign them out.