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
- ID/Key of the data entry/cookie.
value
- The value to save.
expiration
- Number of minutes to retain the data for.
Default: <code>525600</code> (1 year)
Returns
The function does not return anything.
Notes
No notes