Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

resetSessionTimeOut()

Resets a session timeout for a console app. This method ensures that users can continue working on Visualforce pages without being prompted to log back in to the console when they return to a console tab or console component. This method is only available in API version 24.0 or later.

For more information, see Modify Session Security Settings in Salesforce Help.

Syntax

1sforce.console.resetSessionTimeOut()

Arguments

None

Sample Code–Visualforce

1<apex:page standardController="Case">
2    <A HREF="#" onClick="testResetSessionTimeOut();">
3           Click here to reset session timeout</A> 
4
5    <apex:includeScript value="/support/console/68.0/integration.js"/>
6    <script type="text/javascript">
7        function testResetSessionTimeOut() {
8            sforce.console.resetSessionTimeOut();
9        };
10    </script>
11</apex:page>

To see this example in action, click the custom link on a case. For more information, see Define Custom Buttons and Links in Salesforce Help.

Note

Response

None