Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CookieOptions

Index

Properties

Optional decode

decode: (value: any) => any

Type declaration

    • (value: any): any
    • The method that will be used to decode extracted cookie values (should be passed when using Get).

      Parameters

      • value: any

      Returns any

Optional domain

domain: string

The domain tells the browser to which domain the cookie should be sent. If you don't specify it, it becomes the domain of the page that sets the cookie.

Optional encode

encode: (value: any) => any

Type declaration

    • (value: any): any
    • The method that will be used to encode the cookie value (should be passed when using Set).

      Parameters

      • value: any

      Returns any

Optional expirationUnit

expirationUnit: string

Allows you to set the expiration time in hours, minutes, seconds, or `milliseconds. If this is not specified, any expiration time specified will default to days.

Optional expires

expires: number

Each cookie has an expiry date after which it is trashed. If you don't specify the expiry date the cookie is trashed when you close the browser.

Optional path

path: string

The path gives you the chance to specify a directory where the cookie is active.

Optional secure

secure: boolean

The Secure attribute is meant to keep cookie communication limited to encrypted transmission, directing browsers to use cookies only via secure/encrypted connections.

Generated using TypeDoc