Newer Version Available

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

resetSessionTimeOut()

Usage

Resets a session timeout on a Visualforce page so that users can continue working without being logged out. For more information, see Setting Session Security. This method is only available in API version 24.0 or later.

Syntax

1sforce.console.resetSessionTimeOut()

Arguments

None

Sample Code–Visualforce

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

This example is set to run by clicking a custom link on a case. For more information, see “Defining Custom Buttons and Links” in the Salesforce online help.

Note

Response

None