How can I ensure that an inactive user will be logged out after a specified amount of time (for versions 4.0 - 4.1)?

0 Likes

Problem:

How can I ensure that an inactive user will be logged out after a specified amount of time (for versions 4.0 - 4.1)?

Resolution:

ANSWER
----------------------------------
Note - for SilkCentral Issue Manager versions 2006 - 2006R2 please see the resolution:
How can I ensure that an inactive user will be logged out after a specified amount of time (for versions 2006 - 2006R2)?

One difference between SilkCentral Issue Manager 3.x and 4.0 - 4.1 is that a user will not get logged out if they do not close their browser at the end of a session or manually log out. This can result in high memory usage on the "Front End" server if a large number of inactive users remain logged in.

To avoid this problem from occurring it is possible to disable this KeepAlive functionality so that users are automatically logged out after a specified period of inactivity.

To do this go to "wwwroot\silkroot\script" in the installation directory on the Frontend Server and edit the file sc_script.js as follows:

comment line 555 out using double slashes:

//sendSilentRequest(keepAliveUrl   "?"   d.getYear()   d.getMonth()   d.getDay()   d.getHours()   d.getMinutes()   d.getSeconds());


It is not necessary to restart the FrontEnd server service for this change to take effect, but it may take some time until all users use this updated script file as this file is cached by the users browser. Pressing "Ctrl F5" will force the browser to reload it.

By default the timeout period will now be 30 minutes; this can be changed by editing the SccResinFrontendServerConf.xml file.

The default location of this file is:

C:\Program Files\Segue\SilkCentral Test Manager 8.1\conf\frontendserver\SccResinFrontendServerConf.xml

To change the timeout period (or the length of time at which an inactive user will be logged out) you should change the value of "session-timeout", shown below:



After changing this value you will need to restart the FrontEnd server service for the change to take effect.

Note: It has been found that when using the Resin webserver the actual timeout period for inactive users will be 5 minutes longer than specified, so you should adjust the specified timeout period accordingly. You should however be cautious about setting a timeout period that is too short as this could lead to users losing unsaved work if they get distracted while working on an unsaved issue.

Old KB# 23674
Comment List
Anonymous
Related Discussions
Recommended