NET of session and distributed session solution

Source: Internet
Author: User

Recently has been in the tangled net implementation of distributed sessions, now will be the recent personal feelings recorded as follows, if there is any better solution please advise.

1. What is session:

The Session object stores the properties and configuration information required for a specific user session. This way, when a user jumps between the application's Web pages, the variables stored in the session object are not lost, but persist throughout the user's session. When a user requests a Web page from an application, if the user does not yet have a session, the Web server automatically creates a Session object. When the session expires or is discarded, the server terminates the session. One of the most common uses of Session objects is to store the user's preferences. (Degree Niang)

Personal Summary: Because the HTTP protocol is stateless, and we want to know some of the user's last access when building a Web site, this requires a mechanism to hold the information that the user accesses. Since you want to save the information, then you must consider the storage of data, where is the storage of data exist? BS architecture of the system, only involved in a client and server, now is the case, the session data is so implemented, there are stored in the client, there are stored on the server, there are two combinations of use, then the question is how the data is stored? What data the client needs to store, and if it throws away the business data from the client, the rest should be stored by the server .... (It takes time to write a blog, a day to write a little)

Implementation of Session in 2.net

3. Custom distributed session implementation, support for high-scale, cross-platform

4. The Ultimate Solution

NET of session and distributed session solution

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.