Crisp session continuity: keep the right conversation when users switch accounts

Imagine Alice signs out of a shared computer, and Bob signs in. Both should see their own support conversation, never one another's messages.

1. The Website ID is not a user session token

Setup & Integrations shows the Website ID, not an authenticated user session token.
Setup & Integrations shows the Website ID, not an authenticated user session token. Screenshot: Crisp Help Center. Example details redacted. Click to enlarge.

In Settings → Workspace Settings → Setup & Integrations, find the Website ID used by the loader. That identifies the workspace. It is not the unique credential that should restore a customer's conversation. The screenshot shows the installation setting, not a session secret.

2. Bind and reset the session deliberately

Generate a stable opaque token for the authenticated account on your backend. Set window.CRISP_TOKEN_ID = tokenFromAuthenticatedBackend; before the existing loader. On logout, clear the token and reset the local session:

window.CRISP_TOKEN_ID = null;
window.$crisp.push(['do', 'session:reset']);

Use the equivalent supported SDK methods for your framework. Never derive tokens from predictable email addresses or public user IDs. A local reset does not delete the remote conversation. Official continuity instructions.

3. Test account switching, not just reloads

With two fictional accounts, start a conversation as A, sign out, sign in as B and verify A's messages are absent. Return to A and confirm the intended continuation. Repeat across route changes and tabs. If your application merges anonymous conversation history on login, choose explicitly when that is appropriate.

About these examples: The screenshots are genuine product interfaces from linked official documentation, not generated mock-ups or our own authenticated product captures. Some example details are redacted. Code and test cases are illustrative; adapt them to your environment.

Follow ChatbotPricing via RSS · Browse feeds

PIP Intelligence

Find a resource

Choose a resource below.