Skip to content

Instantly share code, notes, and snippets.

@herdianf
Created February 10, 2017 19:24
Show Gist options
  • Save herdianf/06c1586fb91c1dfb355f8c84a6e19be7 to your computer and use it in GitHub Desktop.
Save herdianf/06c1586fb91c1dfb355f8c84a6e19be7 to your computer and use it in GitHub Desktop.
disable jetty-maven-plugin jsessionid
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${version.jetty}</version>
<configuration>
<webAppConfig>
<contextPath>/foo</contextPath>
<sessionHandler implementation="org.eclipse.jetty.server.session.SessionHandler">
<sessionManager implementation="org.eclipse.jetty.server.session.HashSessionManager">
<!-- Disable url sessions using JSessionID -->
<sessionIdPathParameterName>none</sessionIdPathParameterName>
</sessionManager>
</sessionHandler>
</webAppConfig>
</configuration>
</plugin>
<plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment