Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UserSessionCookiesOptions

Hierarchy

  • UserSessionCookiesOptions

Properties

Optional Readonly domain

domain: string

Domain attribute.
Recommended value is to be left undefined.

name

name: string

Lowercase name of the cookie where session id will be stored.
Notice that this name should be unpredictable one (e.g. not 'sid', 'id' etc).
Also, cookie name should not begin with __Host- or __Secure- prefixes, as they will be added automatically.

Optional Readonly path

path: string

Path attribute.

Readonly persistent

persistent: boolean

Whether session id cookie need to be persisted in browser.
When set to:
- true - sets Max-Age attribute which makes the browser to persist that cookie for specified amount of time
- false - doesn't set Max-Age, nor Expires attribute which makes the browser to not persist that cookie

Readonly sameSite

sameSite: boolean | "lax" | "strict" | "none"

SameSite attribute.
Set value to false if you don't want to set this attribute. Recommended value is strict.