LWT JavaScript API
    Preparing search index...
    • Set a new cookie.

      Parameters

      • name: string

        Name of the cookie

      • value: string

        Cookie value

      • expires: number

        Number of DAYS before the cookie expires.

      • path: string

        Cookie path

      • domain: string

        Cookie domain

      • secure: boolean

        If it should only be sent through secure connection

      Returns void

      2.6.0-fork Use encodeURIComponent instead of deprecated escape