AccountSessionEventHandler class
namespace: Serenity.Extensions assembly: Serenity.Extensions
Ends the sessions of a user when the account changes for security: the other sessions when the user changes the password, and all of them when an administrator sets it or a reset link does, or an administrator resets the two-factor authentication. A deactivated user is signed out by AccountSessionCookieValidator.
public class AccountSessionEventHandler : IAccountEventHandler
| parameter | description |
|---|---|
| services | Gives the IAccountSessionManager that ends the sessions, when an event is handled, as the manager tells the account event publisher in turn, which needs this handler. |
| httpContextAccessor | Gives the current session. |
Public Members
| name | description |
|---|---|
| AccountSessionEventHandler(…) | Ends the sessions of a user when the account changes for security: the other sessions when the user changes the password, and all of them when an administrator sets it or a reset link does, or an administrator resets the two-factor authentication. A deactivated user is signed out by AccountSessionCookieValidator. |
| virtual HandleAsync(…) |
See Also
- interface IAccountEventHandler
- Source: AccountSessionEventHandler.cs