cool hit counter Cookies in the age of cloud computing_Intefrankly

Cookies in the age of cloud computing

In today's Internet age, where the network is increasingly important to the user experience, planning and deploying the network architecture is an important part of cloud computing. The successful application of cookies in the Internet world has taken the simple access of http and made it rich and interesting, and the micro-servers under cloud computing in the network routing process, cookies are an effective way to identify the identity. Next I'll introduce you to the basic concept and use of cookies.


cookie The Chinese name Small Text File or Small Sweet Cake was invented in March 1993[2] by Lou Monterey, a former employee of Netscape. Initially finalized protocol RFC 2109. The most widely used cookie today is the product of an extension to a standard developed by Netscape. being supported by browser vendors. Mainstream browsers such as IE, Netscape, Firefox, Opera, etc. all support cookies.

Cookies are an effective means of addressing HTTP statelessness, and the server can set or read the information contained in the cookie. When a user logs in, the server sends a cookie containing the login credentials to the user's browser client, and the browser stores the cookie in some form (in memory or on the hard drive).


Cookies are stored in the client's browser and can be divided into memory cookies and hard disk cookies.

Memory Cookie: Maintained by the browser, it is stored in memory and disappears when the browser is closed; its existence is short-lived.

Hard Drive Cookie: Stored in the hard disk, there is an expiration time, unless the user cleans it manually or the expiration time is reached, the hard disk cookie will not be deleted and its existence time is long-term. According to the existence time, it can be divided into non-persistent cookies and persistent cookies.

In computer networks, a session represents a way of network interaction, "session" through tcp three handshakes to represent a session, server-side mechanism, the server uses a hash table-like structure to store information, the session can be continuous, or intermittent. Each session is established as recognizable by a cookie, which is saved on the client side for the server to recognize on the next visit. reference chart

The cookie uses unicode as the encoding, and opens with the UTF-8 character set, with the MaxAg e attribute value in use to determine whether the cookie is temporary, or permanent.

MaxAge->0 indicates the deletion ofcookie

MaxAge-> negative number indicative of temporarycookie, Closing the browser will release the;

MaxAge-> positive number Expresses permanentcookie, It expires automatically when the number of seconds is up;


The editorial process in the use of cookies also over to cross-domain requirements such as.

A/pathA -> proxy server(nginx)->B/pathB

A/path goes through a proxy to access the Adomain server, it is not possible to get a cookie for B Domain, usually only a routeID. Under normal circumstances two name servers cannot exchange the use of cookies.

The following should be noted when using domain and path.

The domain indicates the domain where the cookie is located and defaults to the address of the request, e.g. if the URL is, then the domain defaults to And cross-domain access, such as domain A is, domain B is, then in domain A to produce a cookie so that both domain A and domain B can access it should set the domain of the cookie to; if you want to produce a cookie in domain A so that domain A can not access but domain B can access it should set the domain of the cookie to

path indicates the directory where the cookie is located, the default is /, which is the root directory. On the same server there are directories as follows: /test/,/test/cd/,/test/dd/, now set a cookie1 with path /test/ and cookie2 with path /test/cd/, then all pages under test can access cookie1, while subpages of /test/ and /test/dd/ cannot access cookie2. This is because the cookie enables access to pages under its path path.

The browser will save cookies with the same domain and path in a file, with cookies separated by *.


1、Efficiency of the development team
2、SpringBoot combined with LogBack to print Sql
3、Java networking knowledge of sockets
4、2018 Microsoft Scholars winners announced Eleven new powerhouses in computing emerge
5、Black TechnologyRussian Experts Develop Highly Sensitive Optical Fiber That Can Resist Erosion

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送