httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DEVAL SHAH" <deva...@hotmail.com>
Subject [users@httpd] Apache+mod_jk+Tomcat+mod_rewrite+cookie
Date Fri, 05 Jan 2007 00:12:29 GMT
Hello,
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
Deval



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message