Jump to content

stickysession persistance not working


var32

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/144363-stickysession-persistance-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.