1. After receiving the cookie from the client, the server checks the value in the cookie and the value stored on the server. If the value in the cookie is the same as the value stored on the server, it indicates that the client has logged in, and the server can identify the client.
2. Generally, the client saves the past session information of the two servers, while the server saves only the current cookie information.