Briefly describe the difference between cookies and sessions:

1. The session is stored on the server side, and the cookie is stored on the client side.

2. The session will be closed with the end of the session, and the cookie will be stored on the client browser and will be valid for a long time.

3. The session saves the object, and the cookie saves the string

4. The information stored in the cookie is easy to leak, usually only the unimportant information is stored, and the important information is placed in the session

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325068150&siteId=291194637