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

1swfobject.registerObject("clippy.codeblock-1", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<apex:page standardController="Case">
18    <A HREF="#" onClick="testResetSessionTimeOut();">
19           Click here to reset session timeout</A> 
20
21    <apex:includeScript value="/support/console/24.0/integration.js"/>
22    <script type="text/javascript">
23        function testResetSessionTimeOut() {
24            sforce.console.resetSessionTimeOut();
25        };
26    </script>
27</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