Local and Session Storage
By default, Botonic stores its state in the localStorage With
localStorage, the stored data is saved across browser sessions.
However, for security and privacy reasons, you may have to avoid storing bot data when the page session ends.
That's why Botonic also allows you to store on the sessionStorage, which gets cleared once the page is closed.
If you don't want to store anything in the browser, you must use the
To specify the required storage type, add:
The webchat setting
storageKey indicates the key name to use in order to store the webchat status in
|storageKey||Object or function||Yes||botonicState|
It can be an object or a function returning the
storageKey parameter in the webchat settings:
Or using a function: