Clarity Session Timeout Does Not Work

Document ID : KB000052321
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Clarity sessions do not timeout in accordance with the value set in system settings, Minutes Until Logoff.

Steps to Reproduce:

  1. Set Minutes Of Inactivity Until Logout parameter to non-zero value (or leave default = 60).

  2. Log out and log back in to Clarity as user other than "admin".

  3. Leave application idle for the period longer than specified in Minutes Of Inactivity Until Logout parameter.

  4. Navigate to any other page within Clarity

Expected Result: Session should expire and Login page should be displayed.

Actual Result: Application is still active and user can navigate to various pages.

Solution:

Workaround:

Edit the caches.xml to remove the <listener> element for DefaultSessionManager and UserPartitionCache:

In your caches.xml, you have the following lines:

<cache id="sessionCache" cacheType="system" initCapacity="10000"      
      sessionBased="true">      
 <listener classname="com.niku.union.security.DefaultSessionManager"      
      type="timeout"/>      
 </cache>      
      .... 
 <cache id="userPartitions" cacheType="system" initCapacity="10000"      
      useLRU="true" sessionBased="true">      
 <listener classname="com.niku.union.partitioning.UserPartitionCache"      
      type="timeout"/>      
 </cache>

Please do the following:

  • Shut all the Clarity services down.

  • Back up the $NIKU_HOME/config/caches.xml file that you sent me.

  • Change the lines so that they read:

    <cache id="sessionCache" cacheType="system" initCapacity="10000"
    sessionBased="true"/>
     .... 
    <cache id="userPartitions" cacheType="system" initCapacity="10000"
    useLRU="true" sessionBased="true"/>

Note the forward slash towards the end of the lines!

  • Remove the other 4 lines: <listener...> and </cache>.

  • Restart the Clarity services.

Status:

Resolved in Clarity 8.1.3, 12.0.1

Keywords: CLARITYKB, CLRT-23654, clarity8resolved, clarity813resolved, clarity12resolved, clarity1201resolved