HAProxy Enterprise Documentation 2.3r1

set dynamic-cookie-key backend

Change the value of the dynamic-cookie-key directive.


The dynamic-cookie-key directive sets a secret key that HAProxy Enterprise uses to generate a unique session persistence cookie value for each server in a backend. Use the set dynamic-cookie-key backend command to change the key.


Below, we set a new secret phrase, mynewphrase, for the dynamic-cookie-key directive in the backend servers:

$ echo "set dynamic-cookie-key backend servers mynewphrase" | sudo socat stdio /var/run/hapee-2.3/hapee-lb.sock

See also

Next up

set map