title: Any way to share session state between different applications in tomcat?
body: <p>We want to split a working application in two different <code>.war</code> files in order to be able to update one app without affecting the other. Each webapp will have different a UI, different users and different deploy schedule. </p>
  
  <p>The easiest path seems to be sharing the same session, so if app A set <code>session.setAttribute("foo", "bar")</code> app B will be able to see it.</p>
  
  <p>Is there a way to share the <code>HttpSession</code> state for both apps in the same Tomcat instance?</p>
  
  <p>Our app is running on a dedicated Tomcat 5.5, there are no other apps running on the same tomcat instance, so any security concerns regarding the session sharing are not a problem. We're running multiple Tomcat instances, but the balancer is using sticky sessions.</p>
  
  <p>If it's not possible or this <em>session sharing</em> is a really bad idea please leave a comment.</p>