AccountSessionServiceCollectionExtensions.AddAccountSessions method
Ties the sign-in cookies of the default cookie scheme to sessions (AccountSessionCookieValidator), which the users and the administrators can sign out (IAccountSessionManager), and which end when the account changes for security (AccountSessionEventHandler). The sessions are stored by an IAccountSessionStore that the application registers, e.g. the one of Pro.Extensions; without one, nothing changes. See AccountSessionOptions.
public static IServiceCollection AddAccountSessions(this IServiceCollection collection)
| parameter | description |
|---|---|
| collection | The services. |