Score:0

Why HAProxy session cookie is changing?

ca flag

I run two containers of an app behind an Haproxy and use sticky sessions. I configured it with a cookie as follow :

cookie SERVER insert indirect nocache
server app1 app-1:443 check ssl verify none cookie srv1
server app2 app-2:443 check ssl verify none cookie srv2

The cookie is attached to the requests of the frontend but when I check in the browser console in the network panel, most of the time, the SERVER cookie is set to "srv1" but sometimes it changes for "srv2". I detected it in the haproxy access logs.

Is it a normal behavior ? How to prevent ?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.