title: Share session data between 2 subdomains
body: <p>I am using tomcat 7.0.6 with jdk 1.6.0_22</p>
  
  <p>Is it possible to share session data between 2 different domains with a common subdomain such as a.mydomain.com and b.mydomain.com ?</p>
  
  <p>With the default java servlet a.mydomain.com and b.mydomain.com get different sessions, but is it not possible to create a shared session for all subdomains in mydomain.com?</p>
  
  <p>The problem is also that I don't directly control the commen subdomain (mydomain.com) so I can't serve any servlets from mydomain.com </p>