OptionalcookieSession cookie settings.
OptionaldurationThe session lifetime in seconds.
With absolute sessions (sliding = false), this defines the total session lifetime.
With sliding sessions, this defines the idle timeout before the session expires.
OptionalmaximumThe absolute maximum lifetime of a sliding session in seconds.
This value limits how long a session can exist even if the user remains continuously active.
Only applies when sliding is enabled.
OptionalslidingEnables sliding session expiration.
When enabled, the session expiration is extended on active requests, up to the configured maximumDuration.
When disabled, the session expires after a fixed duration regardless of user activity.
OptionalstoreA custom session store implementation.
When provided, sessions are persisted using this store instead of cookies-only storage.
Partial configuration options for authentication sessions.