You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shadow X <sh...@mindspring.com> on 2003/02/10 07:13:32 UTC
Sessions not working beyond first virtual host
Hi,
I've set up my tomcat to run with 3 virtual hosts, i.e.:
www1.domain.com
www2.domain.com
www3.domain.com
They each have a ROOT context mapped
<Context path="" docBase="www1"/>
<Context path="" docBase="www2"/>
<Context path="" docBase="www2"/>
Sessions work fine in www1.domain.com, however, the sessions created in
www2.domain.com and www3.domain.com are not saved between requests.
When I go from www2.domain.com/default.action to
www2.domain.com/new.action the session attributes are lost. (Note: I am
NOT referring to sessions across multiple hosts.)
I read something about having to run multiple tomcats because it cannot
map sessions to the same path. However, I cannot find more information
in the archives, will someone enlighten me?
Can I use one instance of tomcat for multiple virtual hosts and still
have sessions working properly within each host?
I am using Tomcat 4.1.18 on windows xp.
~Shadow
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org