Cookies for JS
    Preparing search index...

    Class CookieOptions

    Defines the attributes of a HTTP cookie.

    Index

    Constructors

    Properties

    domain: string

    The domain for which the cookie is valid.

    expires: null | Date

    The expiration date and time for the cookie.

    maxAge: number

    The maximum duration, in seconds, until the cookie expires.

    path: string

    The path to which the cookie applies.

    sameSite: null | SameSite

    The cross-site requests policy.

    secure: boolean

    Value indicating whether to transmit the cookie over HTTPS only.

    Methods

    • Returns a string representation of this object.

      Returns string

      The string representation of this object.