Loading

Preventing Chat Session Persistence Across Page Navigation in Enhanced Chat

게시 일자: Jan 13, 2026
상세 설명

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.

솔루션

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.

Knowledge 기사 번호

005227113

 
로드 중
Salesforce Help | Article