forcefully log out a specific user among all online users
In my site administrator can view list all other online users. Administrator can also disable any account from that list. Everything was going fine so far. But now I decided to log out the user which is being disabled. How can I do a log out operation for a particular user from the above specified online user list? NOTE: I'm using default membership schema for my SQL Server database. DaveB You cannot logout a user from outside of their session. See Programatically logout an ASP.NET user for a possible workaround. 来源: https://stackoverflow.com/questions/10369225/forcefully-log-out-a-specific