Community user can see conversation messages from previously logged user from the same browser
Last updated 2022-02-18 ·Reference W-9659947 ·Reported By 2 users
When a community user starts a chat (either with a bot or directly with an agent) and then logs out without closing it first, the next logged in user, which logged from the same browser tab, can see messages exchanged from the previous conversation with the first user.
-Have an agent online or setup a bot that users can communicate with
-From Setup: Digital Experiences-->All Sites--> Create New community (for example a Customer service template)
-Create an embedded service deployment and place it in the template footer
-Publish and log in the community
-Initiate a first chat and exchange a few messages
-Click on your user name and log out
-Access the community again, from the same browser tab and log in as another user
-The deployment will load and display messages from the previously logged in user
We can use an event listener and call embedded_svc.liveAgentAPI.endChat() or embedded_svc.liveAgentAPI.clearSession() to end the chat when the user logs out.
This works when the user has a single community tab opened in the browser.
In the scenario where the user has a second tab opened (i.e he has duplicated the first tab while chatting) and logs out from this second tab, the session is not cleared/ the chat is not ended
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.