Newer Version Available

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

resetSessionTimeOut()

Resets a session timeout on a Visualforce page so that users can continue working without being logged out. 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/41.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