Skip to content

SessionCookieOptions

Defined in: src/plugins/middleware/session.ts:20

Property Type Description Defined in

domain?

string

Domain of the session cookie.

src/plugins/middleware/session.ts:44

expires?

Date

Expiration date of the session cookie.

src/plugins/middleware/session.ts:32

httpOnly?

boolean

Whether the session cookie should be HTTP-only.

src/plugins/middleware/session.ts:36

maxAge?

number

Maximum age of the session cookie in milliseconds.

src/plugins/middleware/session.ts:24

path?

string

Path of the session cookie.

src/plugins/middleware/session.ts:40

priority?

"low" | "medium" | "high"

Priority of the session cookie.

src/plugins/middleware/session.ts:56

sameSite?

boolean | "lax" | "strict" | "none"

SameSite attribute of the session cookie.

src/plugins/middleware/session.ts:52

secure?

boolean | "auto"

Whether the session cookie should be secure.

src/plugins/middleware/session.ts:48

signed?

boolean

Whether the session cookie should be signed.

src/plugins/middleware/session.ts:28