The difference between session and cookie, and the background history of the two mechanisms, then you do not understand the cookie, I'll die for you

Founder of the cookie disgusting, finally found, in 1993 the grandfather ------- Lu Lu -!. Monterey invention. Slowly look down, you will be more understanding and session cookie.

A: HTTP socket stateless protocol and two-way communication

Stateless protocol refers to the protocol for transaction processing without memories. If the lack of state means that the subsequent processing required in front of the information, it must be retransmitted, which may result in the amount of data transmitted for each connection is increased. On the other hand, when it does not require previous information in response to a faster server. Unlike Http protocol to establish a socket connection of two terminals, both sides can communicate with each other, http client can only be access to relevant information by requesting the content or file server.

http protocol This feature has advantages and disadvantages, the advantage of the liberation of the server, each request "go beyond" the connection will not cause unnecessary occupation, the disadvantage is that each request would transfer large amounts of duplicate content information.

Two: HTTP development is a process of continuous self-improvement

1.web the beginning, just a simple page views, what to check to see what just fine. No interaction .

2. Later interaction is required, you need to log on and so on. On the broad session up. Generalized session is the idea, is a session control of strategic pursuit .

3. Keep a session narrowly data to control the answer, site traffic increases, each user's session are saved on the server, the server can not stand , 1993 to engage in out of cookie technology. cookie is real, is generalized session control tactics to achieve .

4. url may be rewritten to achieve control generalized session. Is a solution different from the cookie

5. narrowly session is stored in the server, cookie stored in the client. Generalized session itself is a pursuit. Hey, tell, broad narrow, very ignorant forced to make white.

Three: in the end is the conventional cookie, or some first session

1.cookie background. Dating back to 1993

     Cookie is the plural form of Cookies, in English means cookies, biscuits type is a small text file, the data refers to certain websites in order to identify the user identity stored in the user's local interrupts on the former Netscape employees Lu. - Monterey in March 1993 invention, initially defined with RFC 2109 using any one of the current most widely Cookie standards are not defined in RFC, but rather on the expanded product standards developed by Netscape.

Netscape is Netscape Communications Corporation (Netscape Communications Corporation) is commonly referred to. Netscape Communications Corporation was once a US computer services company, with its production of the same name as Netscape Navigator Web browser is known for. In November 1998, Netscape was acquired by America Online (AOL).

Netscape this company is that netscape browser company, a very powerful start, and later to a whole system via the browser, Microsoft found out, a look at this not ah, you look at this stuff very hard, in case development up, I do not just uncomfortable. after Microsoft wanted you to the entire system, I went the whole browser, just dedicated to you. after come up with IE, not only free, but also ruthless promotion measures, IE browser will follow windows bindings dress, people spray it, but no way, ah, more than with the use of used to it. it would not be the next Netscape, and later thought of a rut, a free after all of its software versions, also netsscape Communicator 4.0 source code is open, but nothing special with large, America online was acquired 98 years, and finally beat Microsoft antitrust lawsuit, won the case, but the July 15, 2003 AOL to Netscape disbanded this company basically withdrew from the stage of history, and the rest of the Netscape portal is still there.

Come to talk about Lu - Monterey, in 1994, he was first elected to the General Assembly proclaimed the International World Wide Web , one of six Hall of Fame World Wide Web, he graduated from the University of Kansas, 15 years, when joined JetInsight look at the work experience.

2.session background

  Baidu for a long time, check more than one hundred search results, Baidu Encyclopedia also checked, or finding out, session mechanism proposed time . However, it is determined that the existing concept of session, only later to realize the session.

  Hang force Baidu! Deceptive learn SEO, deceptive sites do MIP reconstruction, deceptive search results!

3. There are some other solutions, such as token, jwt and so on, these are the differences Road and surgery.

  Again, web immortal, session forever!

Check the information for a long time, know almost, csdn, Baidu Encyclopedia, and so on, lessons, certainly for your help. There is not too much detail, but the idea to figure out, you know why it is, I think it is more important!

Guess you like

Origin www.cnblogs.com/cn-oldboy/p/12543519.html