| Configuring the WSM
using Device Manager |
  
|
Example 4: Using rewrite cookie mode
This example shows how to configure the rewrite cookie mode with an 8-byte or 16-byte cookie length.
- 8-byte cookie length:
| If you configure an 8-byte cookie length, the WSM rewrites the placeholder cookie value with the encrypted real server IP address. |
| If the server is configured to include a placeholder cookie (Set-Cookie: sid=alteonpersistence), the WSM rewrites the first eight bytes of the cookie to include the server's encrypted IP address (Set-Cookie: sid=cdb20f04rsistence). Subsequent traffic from a specific client with this cookie will be directed to the same real server. |
- 16-byte cookie length:
| If you configure a 16-byte cookie length, the WSM will rewrite the cookie value with the encrypted real server IP address and virtual server IP address. |
| If the server is configured to include a placeholder cookie (Set-Cookie: sid=alteonwebcookies) the WSM will rewrite the first 16 bytes of the cookie to include the encrypted real server IP address and virtual server IP address (Set-Cookie: sid=cdb20f04cdb20f0a). Subsequent traffic from a specific client to the particular virtual server IP address with this cookie will be directed to the same real server. |
To direct the WSM to rewrite the server cookie, use the following virtual server and service settings:
Cookie Search = Disabled
|
Tells the WSM to look for the cookie in the HTTP header.
|
Cookie Name = sid
|
Embeds this cookie name in the server response. The WSM searches for this cookie name in subsequent requests from the same client.
|
Cookie Offset = 1
|
Tells the WSM to start searching at the first byte of the cookie. This setting is not effective in rewrite mode.
|
Cookie Length = 8 or 16
|
Tells the WSM to extract 8 bytes to rewrite the encrypted real server IP address, or 16 bytes to rewrite both the encrypted real server and virtual server IP addresses.
|
Persistent Binding = Cookie
|
Tells the WSM to look for the cookie embedded in the server response in subsequent requests from the same client.
|
Cookie Persistence Mode = Rewrite
|
Tells the WSM to generate the cookie value on behalf of the server. The WSM intercepts this persistence cookie and rewrites it with the real server's encrypted IP address before sending it to the client. NOTE: In Rewrite mode, the cookie length can only be 8 or 16 and the cookie offset parameter is not effective.
|
See also: