You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i have build a PoC with Apache Tomcat servers that share their session in a Redis database, using Redisson.
I used this article.
In overall everything went well. But than I have added jvmRoute in server.xml of Tomcat servers (for the Reverse Proxy in front of the Tomcat servers): <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat-1">
This jvmRoute-ID is added to the session-ID as postfix, for example: 44EFCCF01840EC06C014B1808153F366.tomcat-1
The problem: every time i switch servers, i get a new session. The reason I found is, that the whole string (session id and jvmRoute-postfix) is stored as key in Redis database. But only the session ID (without jvmRoute) should be used as key.
Is there anything I have to configure in Redisson? Or is this a bug?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
i have build a PoC with Apache Tomcat servers that share their session in a Redis database, using Redisson.
I used this article.
In overall everything went well. But than I have added jvmRoute in server.xml of Tomcat servers (for the Reverse Proxy in front of the Tomcat servers):
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat-1">
This jvmRoute-ID is added to the session-ID as postfix, for example:
44EFCCF01840EC06C014B1808153F366.tomcat-1
The problem: every time i switch servers, i get a new session. The reason I found is, that the whole string (session id and jvmRoute-postfix) is stored as key in Redis database. But only the session ID (without jvmRoute) should be used as key.
Is there anything I have to configure in Redisson? Or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions