Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Logout user session remotely

Avatar

Level 2

Hi,

We have a active AEM browser user session(this session is using the login-token cookie),

Now need to make that session inactive from a remote system by using a servlet call.

Please let us know is there any mechanism available in AEM to logout active sessions of a particular user or is there any other way to achieve it.

3 Replies

Avatar

Employee

The same question has been answered here. Its specific to older version but the same principle should apply:

how to handle user session in cq5

Avatar

Employee Advisor

In addition to what Hamid mentioned, you can try to use a CURL command to clear tokens from "http://<host>:<port>/system/console/tokenmgr"

Avatar

Level 2

Hi Jaideep,

My servlet session is different from the session which is serving the user.

I m trying to achieve the same from my servlet "clear tokens from "http://<host>:<port>/system/console/tokenmgr".

Do you have any inputs on how achieve the same via code.