The following configuration can be applied to modify the session characteristics of a web application:

The following configuration can be applied to modify the session characteristics of a web application:

−

+

| steps =

+

===Init Parameters===

<table>

<table>

<tr>

<tr>

Line 9:

Line 10:

<td><b>Description</b></td>

<td><b>Description</b></td>

</tr><tr>

</tr><tr>

−

<td>org.mortbay.jetty.servlet.SessionCookie</td>

+

<td>org.eclipse.jetty.servlet.SessionCookie</td>

<td>JSESSIONID</td>

<td>JSESSIONID</td>

−

<td>Session cookie name.efaults to JSESSIONID, but can be set for a particular webapp with this context param.</td>

+

<td>Session cookie name defaults to JSESSIONID, but can be set for a particular webapp with this context param.</td>

</tr><tr>

</tr><tr>

−

<td>org.mortbay.jetty.servlet.SessionURL</td>

+

<td>org.eclipse.jetty.servlet.SessionIdPathParameterName</td>

<td>jsessionid</td>

<td>jsessionid</td>

<td>Session URL parameter name. Defaults to jsessionid, but can be set for a particular webapp with this context param. Set to "none" to disable URL rewriting.</td>

<td>Session URL parameter name. Defaults to jsessionid, but can be set for a particular webapp with this context param. Set to "none" to disable URL rewriting.</td>

</tr><tr>

</tr><tr>

−

<td>org.mortbay.jetty.servlet.SessionDomain</td>

+

<td>org.eclipse.jetty.servlet.SessionDomain</td>

<td>-</td>

<td>-</td>

<td>Session Domain. If this property is set as a ServletContext param, then it is used as the domain for session cookies.If it is not set, then no domain is specified for the session cookie.</td>

<td>Session Domain. If this property is set as a ServletContext param, then it is used as the domain for session cookies.If it is not set, then no domain is specified for the session cookie.</td>

</tr><tr>

</tr><tr>

−

<td>org.mortbay.jetty.servlet.SessionPath</td>

+

<td>org.eclipse.jetty.servlet.SessionPath</td>

<td>-</td>

<td>-</td>

<td>Session Path. If this property is set as a ServletContext param, then it is used as the path for the session cookie. If it is not set, then the context path is used as the path for the cookie.</td>

<td>Session Path. If this property is set as a ServletContext param, then it is used as the path for the session cookie. If it is not set, then the context path is used as the path for the cookie.</td>

</tr><tr>

</tr><tr>

−

<td>org.mortbay.jetty.servlet.MaxAge</td>

+

<td>org.eclipse.jetty.servlet.MaxAge</td>

<td>-1</td>

<td>-1</td>

<td>Session Max Age. If this property is set as a ServletContext param, then it is used as the max age for the session cookie. If it is not set, then a max age of -1 is used.</td>

<td>Session Max Age. If this property is set as a ServletContext param, then it is used as the max age for the session cookie. If it is not set, then a max age of -1 is used.</td>

+

</tr>

+

<tr>

+

<td>org.eclipse.jetty.servlet.CheckingRemoteSessionIdEncoding</td>

+

<td>false</td>

+

<td></td>

</tr>

</tr>

</table>

</table>

+

===Example===

The above can either be set as <context-param>s in a web application's <tt>WEB-INF/web.xml</tt> file like so:

The above can either be set as <context-param>s in a web application's <tt>WEB-INF/web.xml</tt> file like so: