forcefully log out a specific user among all online users

有些话、适合烂在心里 提交于 2019-12-20 03:05:17

问题


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.


回答1:


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-user-among-all-online-users

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!