on 10-10-2014 10:21 AM
Is there any way to find out how many users are currently logged in my Hybris website ? I understand that from Hybris Admin Console we can get the count of HTTPSession but I am looking for a more accurate way. Please suggest if there is any better way I can achieve the requirement.
You could count all jalosessions that have a user of type customer attached to it. I would not recommend doing that in realtime too often, though, there can be a lot of sessions active...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This would be the best way of doing it although we would also need to filter the anonymous sessions which still have a customer reference e.g.
de.hybris.platform.servicelayer.user.UserService.isAnonymousUser(UserModel)
Unless you're replicating sessions across the cluster this is just giving you the number of logged in users for a single node.
There is not OOTB feature like this. What do you mean by more accurate way ? If you can share your thoughts more than we can suggest you something which is feasible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.