Hi William,

On Mon, Mar 01, 2010 at 01:30:34PM -0500, William Turner wrote:
> First off, thank you to all the developers of HAProxy, it is an amazing piece 
> of software that easily rivals those that cost thousands of dollars more!
>  
> I'll be the first to admit that I am very new to using HAProxy, but we have 
> been using it 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). 

Hey, you seem to apologize for being forced to use buggy applications,
don't worry, we all have the same problems, otherwise haproxy would not
have the rewrite rules nor content switching :-)

> 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.

I did not remember that it was set with a path attribute. Thus, your
patch makes a lot of sense. We should also add the path to the redirect
rules on the set-cookie option.

Unless anyone quickly jumps in with any valid reason not to do that,
I'm going to merge your patch and I'm even thinking about backporting
it to 1.3 as for me it's clearly a bugfix.

Thanks !
Willy


Reply via email to