Take a look at http://support.softartisans.com/kbview.aspx?ID=666 [first link that i found on google about using cookies on diff subdomains]
Basically you save a cookie unique for each user that with domain ".abc.com" Retrieve session vars [the basket in your case] from database via the value of this cookie. I guess there is a way to automatically save the session into database with tomcat, but I don't know anything about this, and retrieve it from two subdomains. If there is the second solution, I'm interested in more details. Viorel Dragomir . .. ------------------------------------------------------------------- ----- Original Message ----- From: Rajaneesh To: 'Tomcat Users List' Sent: Wednesday, January 12, 2005 07:17 Subject: RE: apache + tomcat with 2 domains but same session? Good point. May be clustring helps! Have not used this concept. Regards Rajaneesh -----Original Message----- From: Simon Lau [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 2:22 PM To: tomcat-user@jakarta.apache.org Subject: apache + tomcat with 2 domains but same session? 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 any comments will be greatly appreciated. Thanks. Simon --------------------------------------------------------------------- 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]