Log out inactive AEM users automatically | Community
Skip to main content
Level 2
July 21, 2021
Solved

Log out inactive AEM users automatically

  • July 21, 2021
  • 2 replies
  • 2349 views

Hi,

We want to configure AEM to automatically log out AEM users who are inactive for certain duration of time.

For example, AEM users who are inactive for 2 hours straight get automatically logged out, while other active users (specifically: users who are inactive for less than 2 hours) stay logged in.

AEM version is 6.5.8

 

In Apache Jackrabbit Oak TokenConfiguration, we've currently configured:

  • Token Expiration: 7200000 ms (= 2h)
  • Token Refresh: enabled

Also followed this article to enable Encapsulated token support in Adobe Granite Token Authentication Handler:
https://helpx.adobe.com/experience-manager/kb/login-session-refresh-not-working.html

 

We thought enabling Token Refresh will do the work, but still not working.

Any other steps we should take? Is it possible to configure this in AEM?

Thanks in advance 🙂

Best answer by BimmiSo

Hi @akaria ,

 

You can make use of Oak login token session expiration.

 

The steps to do that can be found in the below link

How to set the Oak login token session expiration | Adobe Experience Cloud

 

Hope it helps!!
Thanks

2 replies

Dipti_Chauhan
Community Advisor
Community Advisor
July 21, 2021
BimmiSoAdobe EmployeeAccepted solution
Adobe Employee
July 21, 2021

Hi @akaria ,

 

You can make use of Oak login token session expiration.

 

The steps to do that can be found in the below link

How to set the Oak login token session expiration | Adobe Experience Cloud

 

Hope it helps!!
Thanks

Adobe Employee
March 23, 2023

Hi @bimmiso @akaria

This seems to be working but it is logging me out for active session also after the time which I have configured is passed.

 

Do I have to do any setting specifically for "inactive" case.

 

Thanks in advance !!