Articles on: Developers

How to reset a Crisp conversation when users log out

Learn how to reset the Crisp chatbox session when an authenticated user logs out.


If you set user identity or session continuity from your website, you should clear the Crisp session during logout. This avoids showing the next visitor the previous user context on shared devices or reused browser sessions.



Reset the session


Call the $crisp JavaScript SDK during your logout routine, after your own application has confirmed the user is logging out.


$crisp.push(["do", "session:reset"]);


This resets the chatbox session without reloading the page.


If you use a session continuity token, clear that token as part of the logout flow before or while resetting the session.



When to use this


Resetting the session is especially important when:

  • Your users log in and out → Crisp may contain identity, email, or custom session data
  • Devices are shared → another person may use the same browser after logout
  • You use session continuity → the previous user token must not remain bound to the chatbox


Read the $crisp Methods documentation for more session actions and SDK methods.


Updated on: 03/05/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!