The cookie command creates a cookie matching rule.
The undo cookie command deletes a cookie matching rule.
cookie pattern-string mode { prefix | suffix | exact | any }
undo cookie pattern-string mode { prefix | suffix | exact | any }
| Parameter | Description | Value |
|---|---|---|
| pattern-string | Specifies the matching string. | The value is a string of 2 to 128 characters. |
| mode | Indicates the matching mode. | - |
| prefix | Indicates the prefix matching mode. | - |
| suffix | Indicates the suffix matching mode. | - |
| exact | Indicates the exact matching mode. | - |
| any | Indicates the any matching mode. | - |
In an HTTP server cluster, different cookies correspond to different real servers. Load balancing is based on the cookies.