Java servlet/jsp container configuration session ID

Source: Internet
Author: User
Tags session id

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.