session对象在什么范围内共享信息
发布网友
发布时间:2022-05-31 22:13
我来回答
共1个回答
热心网友
时间:2023-10-31 19:40
实现同一Tomcat下两个WEB应用之间通过session 共享数据。
查看tomcat 关于 HTTP Connector 中有个emptySessionPath 其解释如下:
If set to true, all paths for session cookies will be set to /. This can be useful for portlet specification implementations. If not specified, this attribute is set to false.
A side effect to setting this to true, is that if Tomcat creates a new session it will attempt to use the cookie session id if supplied by the client.