Clarity sessions do not timeout in accordance with the value set in system settings, Minutes Until Logoff.
Steps to Reproduce:
Expected Result: Session should expire and Login page should be displayed.
Actual Result: Application is still active and user can navigate to various pages.
Check your caches.xml, to see if 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>
If you have them:
Edit the caches.xml to remove the <listener> element for DefaultSessionManager and UserPartitionCache as follows:
<cache id="sessionCache" cacheType="system" initCapacity="10000" sessionBased="true"/>
....
<cache id="userPartitions" cacheType="system" initCapacity="10000" useLRU="true" sessionBased="true"/>