Loading

Preventing Chat Session Persistence Across Page Navigation in Enhanced Chat

Veröffentlichungsdatum: Jan 13, 2026
Beschreibung

In Service Cloud Enhanced Chat, chat sessions may unintentionally carry over as a user navigates through your website. To ensure that a session does not automatically resume on a new page, you can control session continuity by setting the restrictSessionOnMessagingChannel parameter to true within your Embedded Service Deployment code snippet.

Lösung

To prevent an existing chat session from being carried over between web pages where Enhanced Chat is deployed, add a specific setting to the Embedded Service Deployment code snippet.

Steps:

  1. Open the source code of the web page where Enhanced Chat is deployed and locate the Embedded Service Deployment code snippet.

  2. Add the following parameter and value to the section containing embeddedservice_bootstrap.settings:
    embeddedservice_bootstrap.settings.restrictSessionOnMessagingChannel = true; 

With this setting (restrictSessionOnMessagingChannel = true), the behavior of inheriting an existing session is restricted when a visitor navigates to a page where this parameter is set to true (indicating a page where a new chat session should presumably start).

For more details on this setting, please refer to the Enhanced Web Chat Reference in the developer documentation.

Zusätzliche Ressourcen

Enhanced Web Chat Reference 

Nummer des Knowledge-Artikels

005227113

 
Laden
Salesforce Help | Article