(1) When a session is started, the server generates a unique ID called the session ID
(2) server to open a piece of memory, corresponding to the session ID
(3) The server writes the session ID to the browser's cookie
(4) The server has a process to monitor the activity status of all session IDs
(5) When the browser is connected to IIS and the requested ASP is used within the session, IIS attends the session ID in the browser cookie.
(6) The service then checks if the memory corresponding to the session ID is valid.
(7) If valid, the value in memory is read out.
(8) If it is not valid, create a new session.
Attention:
(1) In a large number of websites, the session is not insured,
Our past sites have often encountered an incorrect value in the session (a duplicate session ID may appear).
(2) Session ID cannot be obtained from the cookie file on the hard disk, if you want to know your session ID on the client,
It can only be read by JavaScript (how to do it yourself).
How the Session works