clearSession function exported

Last updated: 2026-03-05T11:49:57.418Z

Metrics

LOC: 8 Complexity: 1 Params: 0

Signature

clearSession(): : void

Summary

Clears all steps from the current (or stopped) session, resets session to null.

Source Code

export function clearSession(): void {
  session = null;
  stoppedSession = null;
  lastActionTimestamp = 0;
  capturedResponses = [];
  stoppedResponses = [];
  clearPersistedSession();
}

Dependencies (Outgoing)

graph LR clearSession["clearSession"] clearPersistedSession["clearPersistedSession"] clearSession -->|calls| clearPersistedSession style clearSession fill:#dbeafe,stroke:#2563eb,stroke-width:2px click clearSession "42fbbe12c8b0fcd8.html" click clearPersistedSession "1bbf0d53387e33bf.html"
TargetType
clearPersistedSession calls

Impact (Incoming)

graph LR clearSession["clearSession"] FillableElement["FillableElement"] FillableElement -->|uses| clearSession style clearSession fill:#dbeafe,stroke:#2563eb,stroke-width:2px click clearSession "42fbbe12c8b0fcd8.html" click FillableElement "2ecf5aaac3f668a8.html"
SourceType
FillableElement uses