]> git.kaiwu.me - haproxy.git/commit
[BUG] Clear-cookie path issue
authorWilliam Turner <TurnerW@resa.net>
Mon, 1 Mar 2010 18:30:34 +0000 (13:30 -0500)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Mar 2010 22:16:42 +0000 (23:16 +0100)
commitd986526d98b0cd3105682a3dc58eca79c70d4362
treecf62b5c3e7e2af10a8337ab6f457d086f0755f5f
parent1104614b57419dbe6f0407d8ce6bf6910d9aeba7
[BUG] Clear-cookie path issue

We have been using haproxy to balance a not very well written application
(http://www.blackboard.com/). Using the "insert postonly indirect" cookie
method, I was attempting to remove the cookie when users would logout,
allowing the machine to re-balance for the next user (this application is
used in school computer labs, so a computer might stay on the whole day
but be used on and off).

I was having a lot of trouble because when the cookie was set, it was with
"Path=/", but when being cleared there was no "Path" in the set cookie
header, and because the logout page was in a different place of the
website (which I couldn't change), the cookie would not be cleared. I
don't know if this would be a problem for anyone other than me (as our
HTTP application is so un-adjustable), but just in case, I have included
the patch I used. Maybe it will help someone else.

[ WT: this was a correct fix, and I also added the same missing path to
  the set-cookie option ]
src/cfgparse.c