You can get away with this by using URL rewriting. When you are using aaa.abc.com and wish to redirect or link to bbb.abc.com - you would need to rewrite the URL to include the jsessionid path parameter. But you *cannot* do this via response.encodeURL(..) since that method will detect your URL is in another webapp. So you will need to write your own implementation of encodeURL to achieve this.
-Tim Simon Lau wrote: > Hi, > > I want to setup my apache to have 2 domains, say aaa.abc.com and > bbb.abc.com. > Both of this domain goes to the same application context, say /myapp > So when i access both > http://aaa.abc.com/myapp/index.jsp > http://bbb.abc.com/myapp/index.jsp > will give me the exact same content, no problem. > > My question is how do i persist the session while i switch between > aaa.abc.com and bbb.abc.com? > For example i have a shopping basket storing with 2 products and i want to > access the basket in both aaa.abc.com and bbb.abc.com > Btw, i am using apache2.0.52 + tomcat5.0.28 > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
