今天干活遇到一个问题,apache下shtml中包含的服务器端文件取到的会话和tomcat中取到的会话不一样,折腾半天突然想起去年也遇到同样的问题,就是想不起来怎么解决的,近一个小时后才弄出来就是tomcat的配置server.xml中这一节里 emptySessionPath="true" tomcat站点里ajp是这么说的 If set to true, all paths for session cookies will be set to /. This can be useful for portlet specification implementations, but will greatly affect performance if many applications are accessed on a given server by the client. If not specified, this attribute is set to false. cookies的路径问题啊,记录一下,下次别又忘了