Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does cookie sticky work on the CSM?

cookie CSM sticky
0
Posted

How does cookie sticky work on the CSM?

0

A. The CSM does not require the servers to insert a specific cookie that can be mapped one-to-one with the servers.”Cookie sticky” in CSM terms means that you specify the name of the cookie that you want to consider for your sticky behavior, for instance, “user_id”. When a new user comes in (in our example, a “new user” is a user whose request doesn’t contain the cookie “user_id” or a user whose request contains the cookie “user_id” with a value without a corresponding active entry in the sticky table), its connection will be load balanced to a server simply relying on the load balancing algorithm that was configured for that serverfarm.Once the user has the cookie (user_id) and once LB decision has been made, then all subsequent connections from a client with that specific cookie value will go to the same server (as long as the specific sticky timer has not expired).It’s not a one-to-one mapping between cookie values and servers, it’s a “learn the cookie value the first time (when you

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123