How to prevent the creation of new Jetty / GAE sessions for different context paths?

I have an application and it uses many different servlet paths. It seems Jetty (which uses GAE) creates a new session for each context path in the request URL.

Example:

  • abc.appspot.com/

  • abc.appspot.com/path2/hello

Each of these paths uses two different sessions. Is there any way to prevent this? I came across the following configuration, which can be used in the web.xml file for Jetty servers:

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

It did not work for me, am I doing it wrong or is it impossible? I heard it is possible in Tomcat .

+6
source share
1 answer

, () , .

, spring -session, ,

0

All Articles