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

sforce.console.resetSessionTimeOut()

Arguments

None

Sample Code–Visualforce

<apex:page standardController="Case">
    <A HREF="#" onClick="testResetSessionTimeOut();">
           Click here to reset session timeout</A> 

    <apex:includeScript value="/support/console/64.0/integration.js"/>
    <script type="text/javascript">
        function testResetSessionTimeOut() {
            sforce.console.resetSessionTimeOut();
        };
    </script>
</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