I want to disable all kinds of session tracking features in Jetty 9 for my Spring MVC application that maintains stateless or manual state, but I could not find any working examples showing how to do this.
I tried the following tag /WEB-INF/spring-config.xml :
... <security:http use-expressions="true" disable-url-rewriting="true" create-session="stateless"> ...
Along with the following descriptor /WEB-INF/jetty-web.xml in war:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <Get name="sessionHandler"> <Get name="sessionManager"> <Set name="usingCookies" type="boolean">false</Set> </Get> </Get> </Configure>
But I still get JSESSIONID cookies when I try to open any page of my application. Any clues why and how to fix it?
source share