The present application provides a session maintaining method and device for load balancing equipment, the method comprising: obtaining the common features of the first message of the
client and the second message of the
server; recording the position information of the common feature in the first message ; After receiving the third message, if it is judged according to the location information that the third message matches the common feature, it means that the third message and the first message belong to the same session, and the third message is sent to the
server, thereby Implement session persistence. This solution can identify the packets belonging to the same session by simply comparing the packet features. It does not need to store sessions, will not affect the running speed of the
system, and does not require cookies, which avoids potential security risks. At the same time, it also realizes the automatic + active comparison and
feature extraction of messages. It is not necessary to indicate where the features are through manual configuration in advance, thereby reducing the page configuration operations. Even users who do not view messages can still implement sessions under load balancing. Maintain and improve user experience.