httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DEVAL SHAH" <>
Subject [users@httpd] Apache+mod_jk+Tomcat+mod_rewrite+cookie
Date Fri, 05 Jan 2007 00:12:29 GMT
I notice that because of url rewriting my cookie is not being passed to 
Tomcat. This is what I am doing:
I have an HTML page where I set my cookie - username.
Now If I call the servlet directly then cookie gets passed e.g. 
/MyApp/MyServlet it works well.
But I have added a redirection as follows:

RewriteRule ^/url1$ /MyApp/MyServlet     [PT]

When I do this and in the HTML page onSubmit I call /url1 - redirects to the 
servlet but the cookie is not set.

How do i go about passing the cookie to the servlet using rewrite ?

Thank you in advance

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message