Sign in

Type: MonoCloudSessionOptionsBase

Configuration options for authentication sessions.

These options control how user sessions are created, persisted, and expired.

Properties

PropertyTypeDescription
cookieMonoCloudCookieOptionsConfiguration for the session cookie used to identify the user session.
durationnumberThe 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.
maximumDurationnumberThe 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.
slidingbooleanEnables 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?MonoCloudSessionStoreOptional session store used to persist session data. If not provided, The SDK uses the default cookie-based session storage. Custom stores allow centralized session management (e.g. Redis, database).
© 2024 MonoCloud. All rights reserved.