📜  粘性会话 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:20.455000             🧑  作者: Mango

代码示例1
Sticky session refers to the feature of many commercial load balancing solutions for web-farms to route the requests for a particular session to the same physical machine that serviced the first request for that session.
With sticky sessions, a load balancer assigns an identifying attribute to a user, typically by issuing a cookie or by tracking their IP details. Then, according to the tracking ID, a load balancer can start routing all of the requests of this user to a specific server for the duration of the session.