on 11-26-2014 11:40 AM
how to get all the jalo sessions in the cluster?
I wanted to keep a restriction of check for a user to login or have only one session active for one customer for various reasons.
While doing this i was able to restrict the same user for multiple logins in one node, but was not able to do it in a cluster.
Thanks in Advance
Vinay
JaloConnection.getInstance().getAllSessions() is deprecated and implementation is returning Collections.EMPTY_LIST (version 5.5.1)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try this from the groovy tab (HAC) of your node :
import de.hybris.platform.jalo.JaloConnection
JaloConnection.getInstance().getAllSessions()
Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vinay,
Here is what the official documentation says about handling sessions on a clustered environment:
You can set up your system to use either sticky sessions or non-sticky sessions.
Sticky Sessions Here, all web requests of one HTTP session are served from the same cluster node. If a request of a HTTP session was first dispatched to Node 1 such as http://www1.myshop.com, all subsequent requests will be dispatched to Node 1, such as http://www1.myshop.com.
Non-Sticky Sessions Here, web requests are dispatched to random nodes across the cluster, depending on the load balancing strategy. If a request of a HTTP session was first dispatched to Node 1 such as http://www1.myshop.com, subsequent requests might be dispatched to any nodes, such as http://www3.myshop.com.
Here you can find more information on that topic:
Does this answer your question?
Thank you,Luis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
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.