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)“


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: <code>525600</code> (1 year)


The function does not return anything.


No notes

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us