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:
Open the source code of the web page where Enhanced Chat is deployed and locate the Embedded Service Deployment code snippet.
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.
005227113

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.