[Yanel-dev] Tomcat on different ports on same hostname

Michael Wechner michael.wechner at wyona.com
Fri Feb 25 09:47:59 CET 2011


Hi

I was playing with two Tomcats both running Yanel (NOT a cluster setup, 
but just two independent Tomcats), but on different ports, e.g.

http://127.0.0.1:8080/yanel/?yanel.toolbar=on

http://127.0.0.1:8180/yanel/?yanel.toolbar=on

and kept get signed out, because Tomcat (and/or Jetty) is setting a 
cookie called JSESSIONID independent
of the port and hence when accessing the Tomcat's from the same browser 
conflicts start.

It seems like quite a few people have this problem

http://www.google.ch/search?q=JSESSIONID+same+host+different+ports+Tomcat

e.g.

http://threebit.net/mail-archive/tomcat-users/msg01504.html

One simple workaround is just to use two different browsers, but another 
simple workaround
is to use 127.0.0.1 for one Tomcat and localhost for the other, e.g.

http://127.0.0.1:8080/yanel/?yanel.toolbar=on

http://localhost:8180/yanel/?yanel.toolbar=on

Cheers

Michael


More information about the Yanel-development mailing list