title: Apache load balancing with tomcat : losing session
body: <p>I am using proxy pass to load balance my workers. Somehow my tomcat session is getting lost and recreated. I tried standalone tomcat and it works fine but not with load balancer. Please help.</p>
  
  <blockquote>
  <pre><code>  &lt;Proxy *&gt;
        Order deny,allow
        Allow from all
      &lt;/Proxy&gt;
      ProxyPass /balancer-manager !
      ProxyPass /images !
      ProxyPass / balancer://mycluster/ 
  
      ProxyPassReverse / balancer://mycluster/
  
      &lt;Proxy balancer://mycluster&gt;
        BalancerMember ajp://192.168.70.6:9061 route=qa1
        ProxySet lbmethod=byrequests
      &lt;/Proxy&gt;
      &lt;Location /balancer-manager&gt;
        SetHandler balancer-manager
      &lt;/Location&gt;
      &lt;Directory "/Library/WebServer/Documents"&gt;
        AllowOverride all   
      &lt;/Directory&gt;
  </code></pre>
    
    <p></p>
  </blockquote>