Reference

set dynamic-cookie-key backend

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

Description Jump to heading

The dynamic-cookie-key directive sets a secret key that the load balancer 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.

Examples Jump to heading

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

nix
echo "set dynamic-cookie-key backend servers mynewphrase" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999
nix
echo "set dynamic-cookie-key backend servers mynewphrase" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999

See also Jump to heading

Do you have any suggestions on how we can improve the content of this page?