Record: CookieOptions

The options to be used when initializing the http:Cookie.

Closed record

Fields

  • path string?
  • URI path to which the cookie belongs

  • domain string?
  • Host to which the cookie will be sent

  • expires string?
  • Maximum lifetime of the cookie represented as the date and time at which the cookie expires

  • maxAge int(default 0)
  • Maximum lifetime of the cookie represented as the number of seconds until the cookie expires

  • httpOnly boolean(default false)
  • Cookie is sent only to HTTP requests

  • secure boolean(default false)
  • Cookie is sent only to secure channels

  • createdTime Utc(default time:utcNow())
  • At what time the cookie was created

  • lastAccessedTime Utc(default time:utcNow())
  • Last-accessed time of the cookie

  • hostOnly boolean(default false)
  • Cookie is sent only to the requested host