Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Auto logout users after idle time in Silk Central

Auto logout users after idle time in Silk Central

The default server session timeout in Silk Central 17.0 is 30 minutes. As long as the browser window is not closed, keep-alive requests are sent to the server. Any active user that has Silk Central opened in the browser will consume a license.
However, if you  have problems with users who leave their browser open without working in Silk Central, you can adopt the following approach.

Modify the KeepAlive interval

The sKeepAlive interval can be modified in the file <INSTALL_DIR>\<instance name>\wwwroot\silkroot\script\bca_script.js as shown below. 

var sKeepAliveInterval = 0;

Additionally edit the function handleLoadEvent to look as shown below:

function handleLoadEvent(keepAliveUrl)
if (sKeepAliveInterval > 0)
     window.setInterval("doKeepAlivePing('" + keepAliveUrl + "')",sKeepAliveInterval); }

If  set to 0 KeepAlive requests are disabled and only the server session timeout applies. 


Modify the session timeout value

The server session timeout can be configured by adding a session-config section in  
<INSTALL_DIR>\<instance name>\wwwroot\ROOT\WEB-INF\web.xml.

e.g. C:\Program Files (x86)\Silk\Silk Central 17.5\instance_1_silk\wwwroot\ROOT\WEB-INF\web.xml

Please refer to the highlighted section below:
<?xml version="1.0" encoding="ISO-8859-1"?> 
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 


Based on these settings, if users remain idle for more than 10 minutes their license will be returned to the license pool.


Incident # 2879893,2912984


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2016-11-22 06:38
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.