AccountSessionServiceCollectionExtensions class
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Extensions
Contains extensions to register the sessions of the users.
public static class AccountSessionServiceCollectionExtensions
Public Members
| name | description |
|---|---|
| static AddAccountSessions(…) | 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. |