@cldn/web-ts - v0.4.0
    Preparing search index...

    Class Cookie

    A cookie that the server wants to ask the client to set.

    Implements

    Index

    Constructors

    Properties

    domain?: string

    Defines the host to which the cookie will be sent.

    expires?: Date

    Indicates the maximum lifetime of the cookie.

    httpOnly: boolean

    Forbids JavaScript from accessing the cookie.

    maxAge?: number

    Indicates the number of seconds until the cookie expires.

    name: string

    The name of this cookie.

    partitioned: boolean

    Indicates that the cookie should be stored using partitioned storage.

    path?: string

    Indicates the path that must exist in the requested URL for the browser to send the Cookie header.

    sameSite?: SameSite

    Controls whether or not a cookie is sent with cross-site requests.

    secure: boolean

    Indicates that the cookie is sent to the server only when a request is made with the https: scheme (except on localhost), and therefore, is more resistant to https://developer.mozilla.org/en-US/docs/Glossary/MitM|man-in-the-middle attacks.

    Secure

    value: string

    The value of this cookie.

    Methods