Best unofficial Apache Server developers community |
|
I currently have a very basic cluster composed of two Tomcat 6.0.32 instances (Tomcat1 and Tomcat2) running on the same VPS. I'm using mod_proxy_ajp and mod_proxy_balancer as the load balancer through Apache (on the same VPS). We are using basic form authentication (via j_security_check) to create authenticated sessions for users. The load balancer is working well and unauthenticated sessions are being replicated between the two instances successfully. However, I am unable to have authenticated sessions replace between each instance. I am using a very basic JSP called session.jsp (based on the JPS template http://www.syslog.gr/articles-mainmenu-99/15-tomcat-cluster-session-replication.html) to test the session to see if it is a new session and print out the JSESSIONID. I have one copy of the JSP inside of the protected area and one copy outside of the protected area. I've run the following tests: Test 1) Test 2) So far from this I've figured that authenticated sessions aren't being replicated like unauthenticated sessions. Is this a good reason for this or does it point to a configuration problem?
posted via StackOverflow
|
|
 
|
You have not running on sticky_session mode and it could be enabled with worker.loadbalancer.sticky_session=1 And bettter check : http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html |