var32 Posted February 8, 2009 Share Posted February 8, 2009 Hi all , This is my first post , home im in the right place . here is the problem . i have 2 tomcat servers and apache HTTP server as LBS . for some reason the stickysession does not work . i follow apache manual at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#ProxyPass if i'm using only cookie persistance it workes , but sometimes client come without cookie but with the JSESSIONID in the URL . in this case they can move to other server. if i use : stickysession=JSESSIONID the balancer stickysession workes only for cookie , and not for URL and if i use stickysession=JSESSIONID|jsessionid the balancer act as round rubin without persistence. here is the config : ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=On lbmethod=bytraffic <Proxy balancer://mycluster> BalancerMember http://172.16.2.160:8080 route=1 BalancerMember http://172.16.2.161:8080 route=2 </Proxy> Is this a bug that i should be aware of ? or if i'm setting it all wrong ? please help Thanks var32 Quote Link to comment https://forums.phpfreaks.com/topic/144363-stickysession-persistance-not-working/ Share on other sites More sharing options...
var32 Posted February 9, 2009 Author Share Posted February 9, 2009 OK i found the solution i moved all sessions to lower case , and set stickysession to lower case as well. this way it worked perfect . Thanks Quote Link to comment https://forums.phpfreaks.com/topic/144363-stickysession-persistance-not-working/#findComment-758171 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.