From: Willy Tarreau Date: Wed, 19 Nov 2008 20:07:09 +0000 (+0100) Subject: [MINOR] redirect: add support for "set-cookie" and "clear-cookie" X-Git-Tag: v1.3.16-rc1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0140f25;p=thirdparty%2Fhaproxy.git [MINOR] redirect: add support for "set-cookie" and "clear-cookie" It is now possible to set or clear a cookie during a redirection. This is useful for logout pages, or for protecting against some DoSes. Check the documentation for the options supported by the "redirect" keyword. (cherry-picked from commit 4af993822e880d8c932f4ad6920db4c9242b0981) --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 2467007f99..ca6f293ef0 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -2336,34 +2336,68 @@ no option transparent "transparent" option of the "bind" keyword. -redirect location [code ] {if | unless} -redirect prefix [drop-query] [code ] {if | unless} +redirect location [code ]