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:

  1. 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"/>

  2. 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.

  1. In build, find exe inside RedisEventWatcher folder. Copy physical path of exe file.



  2. 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

  3. If the service is created successfully, the following message is displayed:
    [SC] CreateService SUCCESS

  4. 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.

  5. Open Run(Windows+R) and type msc to open Services and Search for Summit Redis Event Watcher service.

  6. 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.

  7. Start the Summit Redis Event Watcher

How to Disable this Feature

Perform the following step in SummitAI application:

  1. 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:

  1. Stop the Summit Redis Event Watcher.

  2. Open command prompt in Admin mode and run the below command:
    SC delete SummitRedisEventWatcher

    Note:

     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.



 

 




Â