< Home

cookie-name

Function

The cookie-name command configures the name of a cookie carrying sticky session information.

The undo cookie-name command deletes the name of a cookie carrying sticky session information.

Format

cookie-name cookie-value

undo cookie-name

Parameters

Parameter Description Value
cookie-value Specifies the name of a cookie carrying sticky session information. The value is a string of 1 to 32 characters containing only uppercase and lowercase letters, digits, and special characters, such as periods (.), hyphens (-), and underscores (_).

Views

Sticky session profile view

Default Level

2: Configuration level

Usage Guidelines

When the sticky session mode is cookie-insert, cookie-passive, or cookie-rewrite, you can run the cookie-name command to configure the name of a cookie carrying sticky session information. For example, the default format for the sticky session information of an SLB module inserted into the cookie is SLBServerpool=example.xxxx. The cookie-name cookie-value command can be used to set the inserted information to cookie-value=example.xxxx.

When the sticky session mode is session-id or source-ip, this function is not supported.

Example

# Set the inserted cookie name to

<sysname> system-view
[sysname] slb
[sysname-slb] persistence a
[sysnaem-slb-persistence-0] type cookie-insert
[sysname-slb-persistence-0] cookie-name Persistence
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >