How to maintain the same session ID across multiple web applications in Java
•
Java
How do I maintain the same session ID for multiple web applications in the JBoss server?
Solution
For similar questions, please take a look at this article Access session of another web application
That's what I mean
"It's not direct. Most containers put each war in a separate classloader, and the ear classloader is their parent. The sessions of each application are independent. You can put what the parent ear provides in each session. If you need them to share something, do an ear function“
Therefore, because each session is private, one web application cannot see another Therefore, you can choose to bundle two web applications in one war file so that they can share session data
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码