Krishanu Dey
Krishanu Dey

Reputation: 6406

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.

Upvotes: 3

Views: 13019

Answers (1)

DaveB
DaveB

Reputation: 9530

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

Upvotes: 2

Related Questions