Thanks guys for all the replies. I did get it to work - by adding logic to manually create/update a JSESSIONID cookie with the Domain set to the parent domain (e.g., "company.com"). This logic could be placed into a tomcat valve, or in some other place along the request control flow. Wanting to avoid too many dependencies to the servlet container api, I chose to place the logic down in the webapp framework (struts request processor in this case).
Regarding the DNS aspect of this... Yes, that part was pretty straight forward. We added a wildcard into DNS (e.g., *.company.com) to point to the server. Tomcat runs as a single Host. Then, we added logic into the app itself (again, up in the requestprocessor / interceptor) to parse out the subdomain and enforce various rules accordingly. This makes sense for our case, as the subdomains are used to change the geographic region set into session and used to query content into the pages. So, it's always the same site regardless of subdomain, just different content. Again, thanks for the help. I'll blog this later and send a note. I imagine others will want to do this same thing. On Jan 31, 2008 1:12 AM, David Delbecq <[EMAIL PROTECTED]> wrote: > Christopher Schultz a écrit : > > > > > > If you use a web server like Apache httpd to make it look like there are > > several domains there, but there's really only one deployed instance of > > your web application, then you should already be able to share the > > cookies across the domains. > And of course, if you just set dns to point to tomcat, an you use > defaultHost on tomcat, there will only be one instance of webapp, but > nothing will magically rewrite cookies as is. Perhaps you can create a > custom valve to do so (Alter response to change cookie domain, alter > request to change the other way) :) > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]