Servelet Spec requires the session cookie to be JSESSIONID. If you launch two instances of IE, it should keep track of a session ID for each instance. That should let you do what you want.
Mozilla just keeps one session ID, even with two instances. -Layton >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Friday, April 23, 2004 2:52 PM >To: Tomcat Users List >Subject: Help Please : Session problem with multiple Tomcats > > > > > > > >Can anyone assist on this one? Does Tomcat have the ability >to name the >session cookie differently ( like BEA Weblogic does )? > >>>>> >We are running multiple Tomcat servers with multiple JVM's and ports. >Everything works fine except for the sessions. >When using one browser (IE) and I flip back an forth between >the two sites >( on the two ports ), the sessions are lost. > >How does Tomcat's session logic work? Is there a way to define two >different session names so they don't clash under one browser? > >We've worked around it so far by using IE with one port and >Netscape with >the other. > >I've included the server.xml's from the two servers. > >Thanks for any help >Ted > ><Server port="18005" shutdown="SHUTDOWN" debug="0"> > > <!-- Define the Tomcat Stand-Alone Service --> > <Service name="Publishing-Manager"> > > <!-- Define a non-SSL HTTP/1.1 Connector on port 8401 --> > <Connector > port="8601" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" connectionTimeout="60000"/> > > <!-- OPTIONAL: Define an SSL HTTP/1.1 Connector on port 8443 --> > <!-- > <Connector > port="8443" minProcessors="2" >maxProcessors="5" > enableLookups="true" >acceptCount="10" >debug="0" scheme="https" secure="true"> > <Factory >clientAuth="false" >protocol="TLS"/> > </Connector> > --> > > <!-- Define the top level container in our container hierarchy --> > <Engine name="Standalone" defaultHost="pubmgr" debug="0"> > > <!-- Global logger unless overridden at lower levels --> > <Logger className="org.apache.catalina.logger.FileLogger" > directory="../logs" prefix="pm_catalina_log." >suffix=".txt" > timestamp="true"/> > > <Realm className="org.apache.catalina.realm.MemoryRealm" /> > > <!-- Define the default virtual host --> > <Host name="pubmgr" debug="0" appBase="webapps" > unpackWARs="true" autoDeploy="true" > > > <Valve className="org.apache.catalina.valves.AccessLogValve" > directory="../logs" prefix="pm_access_log." >suffix=".txt" > pattern="common"/> > > <Logger className="org.apache.catalina.logger.FileLogger" > directory="../logs" prefix="pm_localhost_log." >suffix=".txt" > timestamp="true"/> > > <!-- Tomcat Root Context --> > <Context path="" docBase="ROOT" debug="0" >swallowOutput="true" /> > > <Manager >className="org.apache.catalina.session.StandardManager" > checkInterval="600" entropy="pubmgr"> > </Manager> > > </Host> > > </Engine> > > </Service> > ></Server> > > > > > ><Server port="8005" shutdown="SHUTDOWN" debug="0"> > > <!-- Define the Tomcat Stand-Alone Service --> > <Service name="Webstore"> > > <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> > <Connector > port="80" > enableLookups="true" redirectPort="443" > acceptCount="10" debug="0" connectionTimeout="60000"/> > > <!-- Define an SSL HTTP/1.1 Connector on port 443 --> > <Connector > port="443" minProcessors="3" maxProcessors="25" > enableLookups="true" > acceptCount="10" debug="0" scheme="https" secure="true"> > <Factory > clientAuth="false" protocol="TLS" > keystoreFile="conf/keystore" /> > </Connector> > > <!-- Define the top level container in our container hierarchy --> > <Engine name="Standalone" defaultHost="webstore" debug="0"> > > <!-- Global logger unless overridden at lower levels --> > <Logger className="org.apache.catalina.logger.FileLogger" > directory="../logs" prefix="ws_catalina_log." >suffix=".txt" > timestamp="true"/> > > <Realm className="org.apache.catalina.realm.MemoryRealm" /> > > <!-- Define the default virtual host --> > <Host name="webstore" debug="0" appBase="webapps" > unpackWARs="true" autoDeploy="true"> > > <Valve className="org.apache.catalina.valves.AccessLogValve" > directory="../logs" prefix="ws_access_log." >suffix=".txt" > pattern="common"/> > > <Logger className="org.apache.catalina.logger.FileLogger" > directory="../logs" prefix="ws_localhost_log." >suffix=".txt" > timestamp="true"/> > > <!-- Tomcat Root Context --> > <Context path="" docBase="ROOT" debug="0" >swallowOutput="true" /> > > <Manager >className="org.apache.catalina.session.StandardManager" > checkInterval="600" entropy="webstore"> > </Manager> > > </Host> > > </Engine> > > </Service> > ></Server> > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >
