My webapp is having an issue since upgrading to Tomcat 7. My session will go null
after I login and try to do anything (submitting a request). I\'ve read that s
THE SOLUTION:
sessionCookiePathUsesTrailingSlash="false"
We actually figured out how to solve this. It was a Tomcat 7 setting we needed to set. We placed it in server.xml
, under the tag as follows:
When we were debugging the problem and looking at the cookies path we noticed it was putting a \
backslash after the webapp name, so for our test webapp it was setting the path to /test/
instead of /test
. This caused a bunch of problems.
Has anyone else had to deal with this setting in Tomcat 7? Or have a similar problem?