Sign in

Type: MonoCloudSessionOptions

Partial configuration options for authentication sessions.

Extends

Properties

PropertyTypeDescription
cookie?Partial<MonoCloudCookieOptions>Session cookie settings.
duration?numberThe 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.
maximumDuration?numberThe 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.
sliding?booleanEnables 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.
store?MonoCloudSessionStoreA custom session store implementation. When provided, sessions are persisted using this store instead of cookies-only storage.
© 2024 MonoCloud. All rights reserved.