The code is as follows:



In tomcat 7 environment, access to the session, resulting in abnormal login:

Switch back to the tomcat6 normal:

Java code feel no problem, what should be a tomcat 7 to change configuration can run normally,
CodePudding user response:
With the request directly. GetSession () to obtain, to see if is consistent,