We have been integrating Front Chat into our app, and the experience has been great so far. However, we are facing a challenge with supporting multiple logins on the same machine.
Expected Behavior:
• When a user logs in, they should see the continuation of their own previous chat (if available).
• If a different user logs in, they should only see their own chat history (or start a new conversation if no prior chat exists).
Current Issue:
Right now, when a new user logs in on the same machine, they see the chat history of the first logged-in user, which we want to avoid.
We attempted using the shutdown() method from the Front Chat SDK to clear the chat on logout, but this also removes the previous chat history, preventing the original user from retrieving their past conversations when they log back in.
can someone help me out on this matter?
Solved
Support for persisting multiple chat on same machine with different accounts
Best answer by jason
You’re looking for the shutdown and clear session option on logout to both shut down the chat widget and clear the chat session.
Login to the community
No account yet? Create an account
Use your Front credentials
Log in with Frontor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
