title: Java httpSession is not maintained
body: <p>I just migrated the application from an aged Tomcat server (6.x) to Tomcat 8.</p>
  
  <pre><code>Master: Apache http server
  Slave: Apache Tomcat application server
  </code></pre>
  
  <p>I use the <strong>ProxyPass</strong> setting to connect the Apache http server to the Tomcat server.
  Works well, except the Tomcat server does not maintain <code>httpSession</code> between two <code>httpServletRequests</code>. The second request is suppost to pick-up some values from the <code>httpSession</code>, but the <code>session</code> is new.
  Using the Tomcat server on it's own (port 8080) <code>session</code> is maintained between two requests.</p>
  
  <p>I know there is a trick to this, but I'm unable to find it, regardless how many times I'm reading up and down the Apache manual.</p>
  
  <pre><code>httpd-ajp.conf: ProxyPass /MY_APP ajp://127.0.0.1:8009/MY_APP
  </code></pre>
  
  <p>Any help would be appreciated. </p>