DiviArea.Utils.setCookie()

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Functions
  6. DiviArea.Utils.setCookie()
DiviArea.Utils.setCookie(cookieName, value, lifespan)

Set the value of a cookie, with an expiration date.

Params

cookieName
(string, required) Name of the cookie.
value
(string, required) Value of the cookie.
lifespan
(int, required) Cookie lifespan, in minutes.

Returns

The function does not return anything.

Notes

No notes

Was this article helpful?

Related Articles