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:

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

See also Jump to heading

If this page was useful, please, Leave the feedback.