When Tableau View LWC is embedded in Salesforce, it is not possible to control or shorten the Tableau Cloud or Tableau Server session timeout from either Salesforce or the Tableau View LWC configuration. As a result, the Tableau session may remain active even after a user signs out of Salesforce.
In most deployments, this is not an issue because embedded Tableau content is typically accessed in a non-shared environment, where each user has their own device and browser session.
However, if embedded views are accessed from a shared environment (for example, shared devices or shared browser), users should be securely signed out between sessions to prevent subsequent users from reusing an existing Tableau session.
Use these workarounds to require more frequent re-authentication or to end sessions sooner, depending on your deployment.
The TSM commands that control session timeouts apply only to self-hosted Tableau Server. They do not apply to Tableau Cloud.
(wgserver.session.idle_limit, wgserver.session.lifetime_limit, wgserver.session.apply_lifetime_limit)
For details, see Changing the User Session Timeout on Tableau Server.
Note: Tableau Cloud enforces a fixed idle session timeout of two hours as a platform-level security control. Site or cloud administrators cannot change this setting. For details, see User Security.
Shorten the Salesforce session timeout to force users to re-authenticate with Salesforce. Each page load regenerates the JWT. Re-authentication with Salesforce produces a new JWT and starts a new Tableau session.
For details, see:
If JWT token authentication fails because no valid Tableau Cloud or Tableau Server user exists, a previous Tableau session may persist after Salesforce logout due to the Tableau HttpOnly session cookie.
Use one of the following actions.
Browsers can remove cookies manually or automatically*:
*Although we make every effort to ensure links to external websites are accurate and up to date, Tableau cannot take responsibility for content maintained by external providers. Contact the external site for questions about its content.
Embed Tableau Views to Lightning Pages (Generally Available)
005388971

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.