Logout user session remotely

Avatar

Avatar

gowrishankarp21

Avatar

gowrishankarp21

gowrishankarp21

27-08-2019

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.

Replies

Avatar

Avatar

hamidk92094312

Employee

Avatar

hamidk92094312

Employee

hamidk92094312
Employee

27-08-2019

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

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

27-08-2019

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

Avatar

gowrishankarp21

Avatar

gowrishankarp21

gowrishankarp21

27-08-2019

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.