• Public
  • Public/Protected
  • All

Interface ICookieOptions

Additional options that can be set on a HTTP cookie.


  • ICookieOptions



Optional domain

domain: string

Domain name for the cookie. Defaults to the domain name of the app.

Optional expires

expires: Date | number

Expiry date of the cookie in GMT. If not specified or set to 0, creates a session cookie.

Optional httpOnly

httpOnly: boolean

Flags the cookie to be accessible only by the web server.

Optional maxAge

maxAge: number

Convenient option for setting the expiry time relative to the current time in milliseconds.

Optional path

path: string

Path for the cookie. Defaults to �/�.

Optional secure

secure: boolean

Marks the cookie to be used with HTTPS only.

Optional signed

signed: boolean

Indicates if the cookie should be signed.