简体   繁体   English

spring httpsession和tomcat session之间的区别

[英]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.

相关问题 HttpSession-s之间共享的Spring Session Bean - Spring session bean shared between HttpSession-s spring-session 是否使用 HttpSession 保存 bean? - Does spring-session saves bean with HttpSession? 在Spring的Session / HttpSession对象中存储对象列表 - Store List of objects in Session/HttpSession object in Spring 是否在HttpSession中保存了Spring会话范围的bean? - Is Spring session scoped bean saved in HttpSession? Spring Session 与 Servlet HttpSession 相比有哪些优势? - Which are the advantages of the Spring Session compared with Servlet HttpSession? HttpServletRequest.getSession(false)和HttpSession之间的区别 - Difference between HttpServletRequest.getSession(false) and HttpSession Spring Session中SaveMode和FlushMode有什么区别? - What is the difference between SaveMode and FlushMode in Spring Session? spring的model和session有什么区别 - What is the difference between the model and session in spring 如何获取序列化的tomcat HttpSession以重新填充Spring SessionRegistry - How to get serialized tomcat HttpSession to repopulate spring SessionRegistry 在tomcat和weblogic 10服务器中部署spring应用程序之间的区别 - difference between deploying spring application in tomcat and weblogic 10 servers
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM