cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How I can get the list of all Jalo sessions in Hybris 6.3+

Former Member
0 Likes
613

Hi all,

In Hybris 5.4 I was able to get full list of Jalo sessions like this: final Collection jaloSessions = JaloConnection.getInstance().getAllSessions();

After this I was able to close all sessions for specific user, for instance.

In Hybris 6.3 this method was deprecated and currently returns empty list: /** @deprecated */ @Deprecated public Collection getAllSessions() { return Collections.EMPTY_LIST; }

I would appreciate if someone let me know if this is still possible to do in Hybris 6.3 in some other way or is there some alternatives? In some cases I need to find all sessions that are currently open for a user and close them. This task was easy in Hybris 5.4, but currently I'm stuck with it using Hybris 6.3

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

ihar
Explorer
0 Likes

Hi Dmytro,

Probably, you could try to listen to de.hybris.platform.servicelayer.event.events.AfterSessionCreationEvent and aggregate all created sessions manually.