Forum Moderators: phranque
My goal is to hide the context of the Tomcat webapp from the user.
So, if my site is:
www.foo.com
I want it to redirect to
<second apache instance>/bar (where bar is my webapp context).
I have this working great, except for the fact that my webapp sets cookies for session information, and Tomcat thinks it is in the /bar context so it sets the Path attribute equal to '/bar'
However, the browser thinks it is working with the '/' path, so it never sends back the cookie on the next request.
So my question is: Is there a way, probably via mod_rewrite, that when Tomcat sets the path of the Cookie to /bar that I can change it to /?
Thanks!