Log out inactive AEM users automatically | Community
Skip to main content
Level 2
Jul 21, 2021 4:08 AM UTC
Solved

Log out inactive AEM users automatically

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 🙂

BimmiSoAccepted solution
Employee
Jul 21, 2021 7:01 AM UTC

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

3 replies

BimmiSoAccepted solution
Employee
Jul 21, 2021 7:01 AM UTC

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

Translate
Employee
Mar 23, 2023 9:48 AM UTC

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 !!

Translate
Dipti_Chauhan
New Participant
Jul 21, 2021 6:14 AM UTC

Hi @akaria 

  Did you try steps mentioned here: https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-16464.html?lang=en

 

Thanks

Dipti 

Translate