Delete jsessionid in url

I ran into a problem in a jsf web application deployed to a pier web server. When the access application is in the browser, the jsessionID is added to the URL. I want to remove it from there. Thanks in advance.

+5
source share
2 answers

Set the parameter org.mortbay.jetty.servlet.SessionURLvalue nonein the web.xml application or in the context configuration.

See Jetty jsessionId documentation .

+6
source

, . org.eclipse.jetty.servlet.SessionIdPathParameterName none, URL- jsession URL-.

web.xml

<context-param>
    <param-name>org.eclipse.jetty.servlet.SessionIdPathParameterName</param-name>
    <param-value>none</param-value>
</context-param>

, web.xml,

@Override
public void onStartup(ServletContext servletContext) throws ServletException {
       servletContext.setInitParameter("org.eclipse.jetty.servlet.SessionIdPathParameterName", "none");
}

: Jetty

+1

All Articles