Options
All
  • Public
  • Public/Protected
  • All
Menu

Module background/methods/cookies

Index

Functions

  • deleteCookie(cname: string): void
  • getCookie(cname: string): string
  • Given a cookie name, return the value of the cookie

    Parameters

    • cname: string

      The name of the cookie to retrieve.

    Returns string

    The value of the cookie.

  • setCookie(cname: string, cValue: string, exDays: number): void
  • Set a cookie with a value and an expiration date

    Parameters

    • cname: string

      The name of the cookie.

    • cValue: string

      The value of the cookie.

    • exDays: number

      The number of days the cookie will be valid.

    Returns void

Generated using TypeDoc version 0.22.15, the 4/20/2022