问题
I have changed the sessionCookieName
in context.xml
<Context sessionCookieName="SESSIONID">
...
</Context>
Edit after @denov's answer: In my web.xml I'm using this configuration:
<session-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
Now I can see the new cookie name in my url:
http://localhost:8080/profile;SESSIONID=FEB1091BD2E132362FFDE8FE354F4CEA
It happen never if I'm using default tomcat settings (JSESSIONID)
So how to disable this "feature"?
回答1:
https://tomcat.apache.org/tomcat-8.0-doc/config/context.html
<Context sessionCookieName="SESSIONID" cookies="true">
...
</Context>
来源:https://stackoverflow.com/questions/36405296/tomcat-8-how-to-remove-sessioncookiename-from-url