Alteon Application Switch Operating System Application Guide
Server Load Balancing
250
Document
ID:
RDWR-ALOS-V2900_AG1302
To configure the replace action for cookies
This action replaces the matched cookie key and value with the new specified key and value. When
the direction is set to request, the cookie header is modified. When the direction is set to response,
the Set-Cookie header is modified.
Note:
The numbers and names in this procedure are examples only.
1. Access HTTP Modification rule list configuration via the Layer 7 menu, enter a rule list ID, and
enable the rule list.
2. Enter rule, the rule ID number, and then enter the desired element type.
3. Enter action to access the Rule Action menu, and then enter replace to set the new rule
replace action.
4. Enter directn to set the rule direction, and then enter the rule direction: request or response.
Example
To change the value of the cookie "User-Type" from "Gold" to "Premium" in all client requests, use
the following configuration:
>>Main# /cfg/slb/layer7/httpmod
>>Enter HTTP Modification rule-list id (alphanumeric): http-mod-list
>>HTTP Modification rule-list http-mod-list# ena
>>HTTP Modification rule-list http-mod-list# rule
>>Enter HTTP Modification rule number (1-128):5
>>Element can be one of: url, header, cookie, filetype, statusline, text
>>Enter element to be modified: cookie
>>cookie Modification http-mod-list Rule 5
>>cookie Modification http-mod-list Rule 5 # action
>>Current rule action:
>>Enter new rule action [insert|replace|remove]: replace
>>Enter cookie key to replace or none:
>>Enter cookie value to replace or none:
>>Enter new cookie key or none:
>>Enter new cookie value or none:
>>cookie Modification http-mod-list Rule 5 # directn
>>Enter new rule direction [req:resp] [req]: