Jetty is a project at the Eclipse Foundation.
| Homepage: | http://www.eclipse.org/jetty |
| Downloads: | http://download.eclipse.org/jetty/ |
| Documentation: | http://www.eclipse.org/jetty/documentation/current/ |
| About: | http://www.eclipse.org/jetty/about.php |
| Jetty Powered: | http://www.eclipse.org/jetty/powered/ |
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Configuring Session Information
The following configuration can be applied to modify the session characteristics of a web application:
Context Parameter Name |
Default Value |
Description |
|---|---|---|
org.mortbay.jetty.servlet.SessionCookie |
JSESSIONID |
Session cookie name.efaults to JSESSIONID, but can be set for a particular webapp with this context param. |
org.mortbay.jetty.servlet.SessionURL |
jsessionid |
Session URL parameter name. Defaults to jsessionid, but can be set for a particular webapp with this context param. |
org.mortbay.jetty.servlet.SessionDomain |
- |
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. |
org.mortbay.jetty.servlet.SessionPath |
- |
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. |
org.mortbay.jetty.servlet.MaxAge |
-1 |
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. |
The above can either be set as <context-param>s in a web application's WEB-INF/web.xml file like so:
or, they can be set in a Jetty context xml file that configures a web application: