Session Timeout Enhancement
Session Timeout Enhancements
To simplify the license availability of SummitAI, when the application's browser or browser tabs are closed abruptly without logging out, then currently user logout happens only based on the Session timeout is configured.
Since the application logout was dependent on the session timeout, a duplicate pop-up was displayed for End-users. If the user login before session timeout, for the Analysts, the license was occupied till the session timeout.
Now, based on the following configuration, the system will log out the users as soon as they close the browser (in less than 5 mins).
Pre-requisites
- Redis must be installed and running.
How to Enable this Feature
Perform the following steps in SummitAI application:
- Update the Web.config file using the following Config keys:
<add key="App:LogoutonBrowserClose" value="True"/>
<add key="App:Caching" value="True" />
<add key="App:IsRedisEnabledForBrowserClose" value="True"/>
- Update the encrypted Redis connection string:
<connectionStrings>Â Â Â
         <add name="RedisConnector" connectionString=" " />
      </connectionStrings>
Redis connection string example:
<IPAddress>:<PortNumber>,connectRetry=3,connectTimeout=5000,syncTimeout=5000,defaultDatabase=<DB Id>,password=<password>
Perform the following steps to install Redis Event Watcher Service.
- In build, find exe inside RedisEventWatcher folder. Copy physical path of exe file.
- Open command prompt in Admin mode and run the below command to create Windows Service from exe file.
SC SummitRedisEventWatcher binPath= "<physical path>\
SummitAI_RedisEventWatcher.exe " Â DisplayName= "Summit Redis Event Watcher"
start= auto - If the service is created successfully, the following message is displayed:
[SC] CreateService SUCCESS - Update the encrypted Database and Redis connection string.
<connectionStrings>
                       <add name="SummitDB" connectionString=" " />
                       <add name="RedisConnector" connectionString="" />
</connectionStrings>
Note:
The Database and Redis connection string which is updated here should be the same as in web.config in Summit AI Application.
Open Run(Windows+R) and type msc to open Services and Search for Summit Redis Event Watcher service.
Right click on Summit Redis Event Watcher service and select Properties. Under General tab, check Startup type. If Startup type is not set to Automatic, change it to Automatic and click on Click OK.
Start the Summit Redis Event Watcher
How to Disable this Feature
Perform the following step in SummitAI application:
- Update the Web.config file using the following Config keys:
<add key="App:LogoutonBrowserClose" value="False"/>
<add key="App:IsRedisEnabledForBrowserClose" value="False"/>
Perform the following steps in Summit Redis Event Watcher Service:
- Stop the Summit Redis Event Watcher.
Open command prompt in Admin mode and run the below command:
SC delete SummitRedisEventWatcherNote:
 It does not delete any files from the physical path.
Limitations
This functionality is supported on IE 10 or later versions.
Applicable Version
This feature is applicable for Denali SP3 HF06 and later versions.
Note:
- By default, this functionality is not enabled. Need to raise a request to support team to enable this feature. Config key details are mentioned
- This functionality is applicable only to web application. If the user logged in from mobile app and close the app directly without logout. And, then if the same user login into web portal before session timeout, then they will get duplicate popup.
Â
Â
Â
Confluence Cloud Migration Alert: Please refer to known issues you may encounter in Confluence Cloud: https://eitdocs.atlassian.net/wiki/x/wDGwAQ