問題:
When / what are the conditions when a JSESSIONID
is created?創建JSESSIONID
時間/條件是什麼?
Is it per a domain?是按域嗎? For instance, if I have a Tomcat app server, and I deploy multiple web applications, will a different JSESSIONID
be created per context (web application), or is it shared across web applications as long as they are the same domain?例如,如果我有一個 Tomcat 應用程序服務器,並且我部署了多個 Web 應用程序,是否會爲每個上下文(Web 應用程序)創建一個不同的JSESSIONID
,或者只要它們是同一個域,它是否在 Web 應用程序之間共享?
解決方案:
參考一: https://en.stackoom.com/question/2V0q參考二: https://stackoom.com/question/2V0q