Sessions and user sessions
Quameleon tracks two kinds of session.
| Session | User session | |
|---|---|---|
| Field | session_id |
user_session_id |
| Spans | one app process (one launch), or until reset() (sign-out) |
launches, until 30 minutes without a signal, 12 hours in total, or reset() |
| Used for | replay, signal ordering (seq), spool files, crash grouping |
session counts and length in analytics, sampling |
A user session continues while the gap between signals is under 30 minutes and its age is under 12 hours; otherwise a new one starts. The check runs at start, at every signal, and after a long time in the background. Its state is persisted on the device, so a quick relaunch (for example after a crash) continues the same user session.
Signing in doesn’t start a session: identify() attaches the user to the running one. Signing out does. In production
mode, reset() after an identify() ends the current session and user session and starts new ones in the same
process, so the next person to sign in on that device never shares a session or a replay with the previous one. The
ended session’s last signals still upload under its own ids. A reset() while nobody is identified (many apps call
it on every signed-out state, including at launch) changes nothing. In QA mode a run stays one session.
In the dashboard
Section titled “In the dashboard”The Sessions list shows one row per launch (session_id), with:
- the device, the person, the platform, app version and SDK version;
- start, end and duration, the number of signals and screens, entry and exit screens;
- errors and whether the session crashed;
- whether it has a replay, and how many frames.
Filter by device_id, distinct_id, app version, has replay, crashed, a screen visited, or free text.
Sampling
Section titled “Sampling”sample_rate (0 to 1, default 1) is decided once per user session and stored with it. An unsampled user session
keeps the SDK dormant for that launch, so it costs nothing. Replay has its own replay.sample_rate, decided per
launch among the sessions that are captured. See Sampling and remote config.