I am adding a custom Disabled
column to my AspNetUsers
table so that an administrator can temporarily disable an account. (It looks like LockoutEndDateUtc
doesn't work exactly as I need.)
But what if an administrator disables an account while the user is logged in? Rather than having to check if the current user account is disabled on every request, I am looking for a way to expire that user's session so that the next request will require them to log in.
I believe this is controlled by a cookie. Is this possible?