Unfortunately I think you might need to run multiple instances of Tomcat in that case:( As you can't give multiple webapps a cookie with a "/" path. If you find any other solutions, however, please let me know:)
Liam Morley Rick Mills wrote: >Hi > >Thanks for that, it was exactly what was happening! > >Moving the context for the bodypainting WAR file to root, and changing the >proxy pass to map http://www.bodypainting.co.uk/ to http://localhost:8000/ >has fixed the problem, and my session tracking now works as expected. > >I now need to work out a way of having more than one webapp using Apache >virtual hosting where two or more domains both get mapped to / under Tomcat >and get different webapps delivered. I'm running the Tomcat 4.0.3 which >comes bundled with JBoss 3.0.0, so will probably have quite a challenge! > >Thanks for your help. > >Kind regards >Rick Mills > > > >>Rick, >> >>I'm pretty sure that this is the same issue that I've experienced. >>First, try mapping to "/bodypainting/" instead of "/". See if you get a >>cookie there. Then, if you have a browser that allows you to inspect >>session cookies (mozilla is good for this), check the path of your >>session cookie. You should find that it's "/bodypainting". The problem >>is that the cookie path is determined by Tomcat, not by Apache, and >>Tomcat gives every webapp a cookie with the path of the webapp as tomcat >>would determine it; so since Tomcat thinks the path is "/bodypainting", >>the cookie path doesn't change just because you're using mod_proxy. So >>when you go to visit the page at "/", the cookie is ignored because it >>doesn't have the right path. >> >>The only way I can think of to solve your issue so far is to solve the >>path issue with Tomcat- you need to map your webapp to >>'http://localhost:8000/' instead of >>'http://localhost:8000/bodypainting/'. There are two ways I can think of >>to do this: >> >> 1. move your 'bodypainting' webapp into the "ROOT" webapp. >> 2. Uncomment and change the docBase path in server.xml: <Context >> path="" docBase="bodypainting" debug="0"/> >> >>That should do the trick, hopefully. Let me know how that works for you. >>Best of luck! >> >>Liam Morley >> >> > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>