Http://www.eclipse.org/jetty/documentation/current/session-management.html#setting-session-characteristics
<?XML version= "1.0" encoding= "UTF-8"?><Web-appXmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xmlns= "Http://java.sun.com/xml/ns/javaee"xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"version= "3.0"> <Display-name>Hello-jee5</Display-name> <Session-config> <Session-timeout>30</Session-timeout> <!--The Servlet 3.0 specification can use this configuration to make session IDs in URLs instead of using cookies - <!--<tracking-mode>URL</tracking-mode> - </Session-config> <Context-param> <Param-name>Org.eclipse.jetty.servlet.SessionCookie</Param-name> <Param-value>Sid</Param-value> </Context-param> <Context-param> <Param-name>Org.eclipse.jetty.servlet.SessionIdPathParameterName</Param-name> <Param-value>Sid</Param-value> </Context-param>
Resin 3.1.x does not support the Servlet 3.0 specification, but can be configured in resin.conf
<Session-config> <enable-cookies>False</enable-cookies> <enable-url-rewriting>True</enable-url-rewriting> </Session-config> <Web-appID= "/hello-jee5"root-directory= "D:\Workspace\_EclipseKepler\hello-jee5\src\main\webapp"> <!--configurate web directory, App.home=maven project root, app.name= project build name - <Prologue> <Class-loader> <!--configurate class Directory - <Compiling-loaderPath= "D:\Workspace\_EclipseKepler\hello-jee5\target\classes"/> <!--configurate Library Directory - <Library-loaderPath= "D:\Workspace\_EclipseKepler\hello-jee5\target\hello-jee5-0.0.1-SNAPSHOT\WEB-INF\lib"/> </Class-loader> </Prologue> </Web-app>
Java servlet/jsp container configuration session ID