Revision history [back]

click to hide/show revision 1
initial version

answered 2019-11-19 15:52:33 +0800

cor3000 gravatar image cor3000

depending on your tomcat version there's either a legacy mechanism or a web.xml based configuration, summarized here:

https://fralef.me/tomcat-disable-jsessionid-in-url.html

or here

https://stackoverflow.com/questions/962729/is-it-possible-to-disable-jsessionid-in-tomcat-servlet

depending on your tomcat version there's either a legacy mechanism or a web.xml based configuration, summarized here:

https://fralef.me/tomcat-disable-jsessionid-in-url.html

or here

https://stackoverflow.com/questions/962729/is-it-possible-to-disable-jsessionid-in-tomcat-servlet

from tomcat 7+ add this to your web.xml, which will disable the JSESSIONID in the URL

<session-config>
   <tracking-mode>COOKIE</tracking-mode>
</session-config>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More