tomcat中sessionid跨域名的问题emptySessionPath="true"
2012-11-08 16:35
381 查看
配置是这样的:
<Connector port="8080"
maxThreads="512" minSpareThreads="25" maxSpareThreads="100"
enableLookups="false" acceptCount="256" connectionTimeout="20000"
disableUploadTimeout="true" URIEncoding="UTF-8" emptySessionPath="true"/>
我想说的是, emptySessionPath="true"这个配置在很多tomcat版本里不支持,我使用
apache-tomcat-6.0.10 不支持
apache-tomcat-6.0.33 支持
<Connector port="8080"
maxThreads="512" minSpareThreads="25" maxSpareThreads="100"
enableLookups="false" acceptCount="256" connectionTimeout="20000"
disableUploadTimeout="true" URIEncoding="UTF-8" emptySessionPath="true"/>
我想说的是, emptySessionPath="true"这个配置在很多tomcat版本里不支持,我使用
apache-tomcat-6.0.10 不支持
apache-tomcat-6.0.33 支持
相关文章推荐
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题 .
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 写了一个查询数据库的程序,不熟的Tomcat6。查询条件为英文时运行正常,为中文时出现乱码。后在tomcap的server.xml中加入useBodyEncodingForURI="true解决了问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- eclipse配置外部tomcat需要注意的问题。(怎样让request.getSession().getServletContext().getRealPath("/")得到正确的路径结果)
- swing关于jtable的putClientProperty("terminateEditOnFocusLost", Boolean.TRUE)的问题
- centos解决The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers.问题
- 关于ViewState的问题 <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="之后有一大串乱码
- MyEclipse中建立的jsp文件中<base href="<%=basePath%>">可能会带来的问题.
- [JS][jQuery]清空元素html("")、innerHTML="" 与 empty()的区别:关于内容泄露问题
- input type="file" 选取文件路径时出现fakepath问题IE浏览器解决办法
- tomcat下解决 iOS7.1企业应用"无法安装应用程序 因为证书无效"的问题
- 解决“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”问题
- Android @id/与"@android:id/获取id的问题
- Tomcat的Context配置虚拟目录问题,path=""和path="/"
- tomcat 启动动重复Multiple Contexts have a path of "/xxxx"问题解决
- "只有在配置文件或 page 指令中将 enablesessionstate 设置为 true 时"错误解决方案
- C# VS2010发布问题---<compilation debug="true" targetFramework="4.0">