Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 484
Krishanu Dey Avatar asked Dec 07 '25 03:12

Krishanu Dey


1 Answers

You cannot logout a user from outside of their session. See Programatically logout an ASP.NET user for a possible workaround.

like image 164
DaveB Avatar answered Dec 08 '25 17:12

DaveB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!