DiviArea.Utils.setLocalData()

DiviArea.Utils.setLocalData(key, value, expiration)

Save the given information for a specified number of minutes in the current browser.

This method stores data either in the localStorage of the browser, or when the browser does not support localStorage, set a cookie with the given name.

Data saved with this method can be retrieved via `DiviArea.Utils.getLocalData(key)``

Params

key
(string, required) ID/Key of the data entry/cookie.
value
(string, required) The value to save.
expiration
(int, optional) Number of minutes to retain the data for.
Default: 525600 (1 year)

Returns

The function does not return anything.

Notes

No notes

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.