Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Logout user session remotely

Level 2
Level 2


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

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


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

Level 2
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.