Reset on logout
Callreset() whenever a user signs out. Reset clears the external ID and all user properties and rotates the SDK to a fresh anonymous session.
Restart a study
When you want a study the user has already started to begin again from scratch, clear its saved session. The SDK drops the in-progress reference and reloads the study fresh the next time you present it.Offline behavior
The SDK keeps working when the device is offline. Calls you make (identifying a user, setting properties, presenting a study) are queued locally and applied when connectivity returns:- Operations are persisted to local storage, so they survive an app restart.
- The queue drains automatically once the connection is back.
- Operations older than 24 hours are discarded.
- Duplicate operations are deduplicated.
Per-platform reference
Web
Sessions in the browser.
iOS
Sessions on iOS.
Android
Sessions on Android.