You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/04/05 22:55:55 UTC

DO NOT REPLY [Bug 38357] - mod_proxy_balancer doesn't support sticky session

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38357>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38357





------- Additional Comments From jsled-apachebugs@asynchronous.org  2007-04-05 13:55 -------
(In reply to comment #9)
> This is not the point. If you only use the random session ID string you run into
> the following problems that we avoid with our approach:

Good points, and thanks for explaining them.


> do this within httpd. Something like
> 
> Header add Set-Cookie "MYCOOKIE=SOMEVALUE.%{BALANCER_WORKER_ROUTE}e; path=/;"
> env=BALANCER_ROUTE_CHANGED

This is great, thanks again; one thing I note is that the route ID seems to
include the '.', so it seems better to prefix the `routeid` params in the
BalanceMember configs with '.', and leave it out of the Set-Cookie
header-manip.  As such:

  Header add Set-Cookie "app_lb=%{BALANCER_WORKER_ROUTE}e; path=/;"
env=BALANCER_ROUTE_CHANGED

  <Proxy balancer://our-app>
	BalancerMember http://host1:8080 route=.host1
	BalancerMember http://host2:8090 route=.host2
  </Proxy>


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org