Yes. I posted a similar question not long ago. I wanted to know how to preserve the session under exactly this case (my specific need was to have a version in the Tomcat path, but hide that context / version from the user.)
I can tell you why it's NOT preserving it. Tomcat sets the cookie JSESSIONID for host=www.website.com, path /tomcatWebappName/someServlet. The browser sees the cookie for that path on the response (check - it is set). You then ask for /someServlet and there is no cookie with that path (the hosts match, of course) and so the browser does not send the cookie along. No cookie (JSESSIONID), no session. Tim P.s. see http://marc.theaimsgroup.com/?l=tomcat-user&m=113761657202592&w=2 > -----Original Message----- > From: Pete Lamborne [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 23, 2006 7:21 PM > To: Tomcat Users List > Subject: mod_rewrite losing session > > > Hi all, > I am having a problem when using mod_rewrite to hide the Tomcat > webapp/context name, where it spawns a new session with each request. > > I am using apache2.2 and mod_proxy_ajp to dispatch the request and > tomcat 5.5.9 > > So if I try to send this URL: http://www.website.com/someServlet > > to > > http://www.website.com/tomcatWebappName/someServlet > > with mod_rewrite, it's a new session with every request. > > Any ideas? > thanks > pete > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]