Tomcat 7 - where do I set 'system properties'?

后端 未结 5 1823
-上瘾入骨i
-上瘾入骨i 2020-12-05 06:55

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

5条回答
  •  眼角桃花
    2020-12-05 07:27

    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?

提交回复
热议问题