java - How do I prevent Jetty/GAE from creating new sessions for different context paths? -


i have application hosted , uses many different servlet paths. seems jetty (that gae uses) creates new session every context path in request url.

example:

  1. abc.appspot.com/

  2. abc.appspot.com/path2/hello

each of paths use 2 different sessions. there way prevent that? came across following config can used in web.xml file jetty servers:

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

it hasn't worked me, doing wrong or impossible? i've heard this possible in tomcat.

i'm guessing want share session (data) between 2 applications , not share same id different id.

if so, check spring-session server agnostic, , can crazy stuff


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -