[英]Difference between spring httpsession and tomcat session
Is there any difference/correlation between spring httpsession and Tomcat session? spring httpsession和Tomcat session之间有什么区别/关联?
I have read Tomcat documentation but still I don't understand how it is related to deployed web apps. 我已经阅读了Tomcat文档,但仍然不了解它与已部署的Web应用程序之间的关系。
No , they refer to the same things. 不,他们指的是相同的东西。 You can think that Tomcat is responsible for creating and managing the actual session instance.
您可以认为Tomcat负责创建和管理实际的会话实例。
When a web app deployed on Tomcat need to access the session , it will ask Tomcat to give it by HttpServletRequest#getSession()
. 当部署在Tomcat上的Web应用程序需要访问会话时,它将要求Tomcat通过
HttpServletRequest#getSession()
给予它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.