问题描述
我在中找到的所有内容都是:
All I can find in the Tomcat 5.5 docs is:
我找到了一些论坛评论设置 crossContext = true
的帖子也可以在不同的Web应用程序之间共享会话对象,但我找不到任何官方文档说明这一点。
I've found some forum posts that comment that setting crossContext=true
also enables sharing the session object between different web applications, but I'm not able to find any official docs stating this.
Servlet.getContext()与不同Web应用程序之间共享会话状态的能力之间是否存在关系?
Is there a relation between Servlet.getContext() and the ability to share session state between different web applications?
什么是在Tomcat中 crossContext
属性真的吗?
What does the crossContext
attribute really do in Tomcat?
推荐答案
来自javadoc ServletContext.getContext()
:
From the javadoc ServletContext.getContext()
:
因此,例如,如果要包含来自不同Web应用程序的页面,则需要将crossContext设置为true。
So for instance if you want to include a page from a different webapp you need to set crossContext to true.
这篇关于crossContext属性在Tomcat中的作用是什么?它是否启用会话共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!