强行注销所有在线用户中特定用户 [英] 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?
请注意:我使用的是默认的成员架构我的SQL Server数据库。
NOTE: I'm using default membership schema for my SQL Server database.
推荐答案
您不能注销从会话以外的用户。请参见编程方式退出的ASP.NET用户一个可能的解决方法。
You cannot logout a user from outside of their session. See Programatically logout an ASP.NET user for a possible workaround.
这篇关于强行注销所有在线用户中特定用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!