When configuring HAProxy, I would like to send traffic to certain servers based on the presence of a cookie.
- There is a HAProxy server and 2 web servers (serverA and serverB).
- When someone logs in, a cookie is created "loginCreds=user:company".
- When John, from CompanyA, comes in, his cookie is "loginCreds=John:CompanyA".
- His traffic will then be directed to serverA.
Is this possible, and if so, how do you set it up?