Newer Version Available

This content describes an older version of this product. View Latest

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.

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/54.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 the Salesforce help.

Note

Response

None