RE: Sticky sessions with proxy_balancer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ryan-

Yes it works for sure in httpd-2.2.4 but pay attention that this parameter
is case sensitive.  So if your cookie is "JSESSIONID" it must be written in
upper case like this in the config file.  Note for Java the cookie is
"JESESSIONID" whereas the path parameter is ";jsessionid" (lc) and mod_proxy
balancer doesn't handle this as it checks for the same case sensitive name
for both the path and the cookie.

Turn your error log level to debug (LogLevel DEBUG in httpd.conf)and
optionally do a tail -f <logfile> | grep "BALANCER" and you'll see when
mod_proxy_balancer thinks it is getting a hit for the session param.

If you are working with Java and need the dual case version I have a patched
the source for httpd-2.2.4 to allow specifying a stickysessionpath param in
the balancer config so it finds both Cookie and path managed sessions.

Cheers,
Ryan (the lesser)

-----Original Message-----
From: Ryan Johnson [mailto:rjohnson@xxxxxxxxxxxx] 
Sent: Wednesday, March 21, 2007 6:20 PM
To: users@xxxxxxxxxxxxxxxx
Subject:  Sticky sessions with proxy_balancer

Hey all,

I am trying to get sticky sessions to work with mod_proxy_balancer, with no
luck.
I have set stickysession=COOKIENAME.

Have not found any good doc on this? Anyone get this working?

Thanks in advance,
Ryan


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux