The difference between session life cycle and cookie

First, the difference between the two

write picture description here

Second, the life cycle of the session

1. The life cycle of a session is divided into three stages: creation, activity, and destruction.
2. Calling the session.invalidate() method can destroy the current session
. 3. Restarting the web server will destroy all sessions.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326754657&siteId=291194637