Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Options

Hierarchy

  • Options

Index

Properties

Properties

Optional Domain

Domain: string

Host to which the cookie will be sent

  • If omitted, defaults to the host of the current document URL, not including subdomains.
  • Contrary to earlier specifications, leading dots in domain names (.example.com) are ignored.
  • Multiple host/domain values are not allowed, but if a domain is specified, then subdomains are always included.

Optional Expires

Expires: Date

The maximum lifetime of the cookie as an HTTP-date timestamp.

If unspecified, the cookie becomes a session cookie.A session finishes when the client shuts down, and session cookies will be removed.

Optional Max-Age

Max-Age: number

Number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. If both Expires and Max-Age are set, Max-Age has precedence.

Optional Path

Path: string

A path that must exist in the requested URL, or the browser won't send the Cookie header.

Generated using TypeDoc