Willy Tarreau | 8263b91 | 2011-09-05 01:04:44 +0200 | [diff] [blame] | 1 | 2011/04/13 : List of possible cookie settings with associated behaviours. |
| 2 | |
| 3 | PSV="preserve", PFX="prefix", INS="insert", REW="rewrite", IND="indirect" |
| 4 | 0 = option not set |
| 5 | 1 = option is set |
| 6 | * = option doesn't matter |
| 7 | |
| 8 | PSV PFX INS REW IND Behaviour |
| 9 | 0 0 0 0 0 passive mode |
| 10 | 0 0 0 0 1 passive + indirect : remove response if not needed |
| 11 | 0 0 0 1 0 always rewrite response |
| 12 | 0 0 1 0 0 always insert or replace response |
| 13 | 0 0 1 0 1 insert + indirect : remove req and also resp if not needed |
| 14 | * * 1 1 * [ forbidden ] |
| 15 | 0 1 0 0 0 prefix |
Joseph Herlant | 71b4b15 | 2018-11-13 16:55:16 -0800 | [diff] [blame] | 16 | 0 1 0 0 1 !! prefix on request, remove response cookie if not needed |
Willy Tarreau | 8263b91 | 2011-09-05 01:04:44 +0200 | [diff] [blame] | 17 | * 1 * 1 * [ forbidden ] |
| 18 | * 1 1 * * [ forbidden ] |
| 19 | * * * 1 1 [ forbidden ] |
| 20 | 1 * 0 * 0 [ forbidden ] |
| 21 | 1 0 0 0 1 passive mode (alternate form) |
| 22 | 1 0 1 0 0 insert only, and preserve server response cookie if any |
| 23 | 1 0 1 0 1 conditional insert only for new requests |
| 24 | 1 1 0 0 1 prefix on requests only (passive prefix) |
| 25 | |