How the Session works

Source: Internet
Author: User

(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.