Skip to content

SessionCookieOptions

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

Property Type Description Defined in

domain?

string

Domain of the session cookie.

src/plugins/middleware/session.ts:43

expires?

Date

Expiration date of the session cookie.

src/plugins/middleware/session.ts:31

httpOnly?

boolean

Whether the session cookie should be HTTP-only.

src/plugins/middleware/session.ts:35

maxAge?

number

Maximum age of the session cookie in milliseconds.

src/plugins/middleware/session.ts:23

path?

string

Path of the session cookie.

src/plugins/middleware/session.ts:39

priority?

"low" | "medium" | "high"

Priority of the session cookie.

src/plugins/middleware/session.ts:55

sameSite?

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

SameSite attribute of the session cookie.

src/plugins/middleware/session.ts:51

secure?

boolean | "auto"

Whether the session cookie should be secure.

src/plugins/middleware/session.ts:47

signed?

boolean

Whether the session cookie should be signed.

src/plugins/middleware/session.ts:27