Changing cookie JSESSIONID name

前端 未结 7 1881
自闭症患者
自闭症患者 2020-12-04 21:18

I have a requirement of having to run multiple tomcat server in single physical box. While accessing these from a browser, when user switches between the applications, it re

7条回答
  •  温柔的废话
    2020-12-04 21:50

    Not 100% sure if this will work, but you can use the jvmRoute attribute, which is generally used in a load-balanced/clustered environment for the load balancers to be able to tell the nodes apart. Example:

    
    

    This will end up generating a JSESSIONID value that looks like "ABCDEF123456.node1".

    Documentation link.

提交回复
热议问题