Hi, I need to run two instances of tomcat as part of two web-applications, on the same machine binding them to different ports. Like say http://myhostname:8080 and http://myhostname:9090
But this has some problems when accessed from the same browser instance (say using different tabs). Session tracking which is based on the 'JSESSIONID' cookie set for the domain name, in this case 'myhostname' becomes the cause for the problem. Logging into the second service, when already logged-on in the first, will over-write the JSESSIONID and hence invalidate the first service's session. Some not so elegant work-arounds to live with the problem... To use different browsers to access the services. To use different host names to access the services, one with the DNS name and one with the IP Address. But is there a permanent way to solve this sort of a problem ? One permanent way is to compile tomcat again, with a changed org.apache.catalina.Globals.SESSION_COOKIE_NAME, which I do not want to do. Is there a better approach ? Thanks, R.Rajkumar