Interface SessionConfiguration

interface SessionConfiguration {
    absoluteDuration?: number;
    cookie?: SessionCookieOptions;
    inactivityDuration?: number;
    rolling?: boolean;
}

Hierarchy (View Summary)

Properties

absoluteDuration?: number

The absolute duration after which the session will expire. The value must be specified in seconds..

Once the absolute duration has been reached, the session will no longer be extended.

Default: 3 days.

The options for the session cookie.

inactivityDuration?: number

The duration of inactivity after which the session will expire. The value must be specified in seconds.

The session will be extended as long as it was active before the inactivity duration has been reached.

Default: 1 day.

rolling?: boolean

A boolean indicating whether rolling sessions should be used or not.

When enabled, the session will continue to be extended as long as it is used within the inactivity duration. Once the upper bound, set via the absoluteDuration, has been reached, the session will no longer be extended.

Default: true.