Cookie in English is the meaning of small desserts, and the word we can always see in a browser, how food will be linked with the browser? » In your browser before the landing site may appear in the page: Hello XX, feeling very kind, is like eating a small dessert like. In fact, this is by visiting your console inside a document to achieve, so this document will be called a Cookie. To a comprehensive understanding of Cookie? » See below!

First, understand Cookie Suitable for: the initial readers

Cookie is when you visit a site, the site is stored on your machine, a small text file, it records your user ID, passwords, pages viewed, at the time, and other information, when you once again came to the site , Through the website to read Cookie, you know the relevant information, we can make the appropriate moves, as in the pages of the banners displayed to welcome you, or you do not have to enter ID, password to log in directly, and so on. You can in IE’s “Tools / Internet Options” in the “General” tab, select “Settings / view documents,” Show all saved to your computer’s Cookie. These documents usually user @ domain name of the format, user is your local user name, domain is visited by the site’s domain name. If you use NetsCape browser, then deposited in the “C: PROGRAMFILESNETSCAPEUSERS” inside, and IE is different, NETSCAPE Cookie is to use a paper record of all site Cookies.

In order to ensure Internet security we need to Cookie appropriately. Open the “Tools / Internet Options” in the “Privacy” tab (Note that this setting only in IE6.0 in the other version of IE in the “Tools / Internet Options” in the “Security” tab, click “Since Custom Level “button, a simple adjustment), Cookie adjust the security level. Typically, you can adjust the slider to “high” or “high” position. Most of the forum site to use Cookie information, if you do not have such places, can be transferred to security level “block all Cookies”. If only for the Prohibition of the individual sites Cookie, you can click “edit” button, it will shield the site to your list. “Advanced” button option, you can be the first party and third-party Cookie Cookie set, a party you are here Cookie is the site of the Cookie, Cookie-third-party sites are here to your Cookie, usually Cookie to a third party to choose “refused.” If you need to keep Cookie, you can use IE’s “Import Export” function, open the “File / Import Export”, according to the prompts.

Cookie after most of the contents of the encrypted and therefore in our view just a few meaningless alphanumeric combinations, only the server CGI handling procedures before they know the real meaning. Through a number of software we can see more content, the use of Cookie Pal software to view the Cookie information, as shown in Figure 2. It provides us with a Server, Expires, Name, value options, such as the content. One, Server is Cookie storage site, Expires recorded Cookie period of time and life, Name and the value field is the specific data.

Second, Cookie object to the transfer process: intermediate readers

When in the browser address bar type in a Web site URL, the browser will be sent to the Web site to read a page of the request, and the results displayed on the monitor. Then the page on your computer to find the Amazon site set up Cookie document, if found, the browser will Cookie together with the data in front of the URL with input sent to the Amazon servers. Cookie server data received, he will be in the database to retrieve your ID, your shopping records, personal preferences and other information, and a record of new content, to databases and Cookie in the document to. If not detected or your Cookie Cookie information and the information in the database do not match, then that is the first time you visit the site, the CGI process server for you to create a new ID information and saved to the database.

Cookie is to use a code page in the HTTP header information transmission, every time the browser page request, can be accompanied by Cookie transmission, for example, open the browser’s refresh the page or operation. Cookie servers will be added to the website of the HTTP header information, data back to the page with your browser that will be based on your computer in the Cookie set to choose whether or not preservation of these data. If your browser does not allow Save Cookie, turn off your browser, these data disappeared. Cookie on the computer saved time is not the same, these are different from the server settings in the decision. Cookie has a Expires (valid) attributes, attributes this decision to the preservation of the Cookie time, the server can set the Expires field values, to change the Cookie save time. If we do not set this attribute, then Cookie only effective during the visit the website, close your browser, these Cookie go away, the overwhelming majority of sites belonging to this situation. Under normal circumstances, Cookie contains Server, Expires, Name, value in these fields, of which the server is only useful and value Name field, Expires fields such as the content simply to tell the browser how to handle these Cookies.

3, Cookie’s programming Suitable for: High readers

Most web programming language provided with the support of Cookie. If javascript, VBScript, Delphi, ASP, SQL, PHP, C #, and so on. In these object-oriented programming language, the use of Cookie programming is basically similar to that for the whole process: first to create a Cookie object (Object), then use the Cookie control function for assignment, read, write To such an operation. So how to code to other users access to sensitive information in the Cookie » Below a brief introduction.

The main two-step approach, first of all, you need to be defined Cookie collection site, and its analysis and structural URL; Cookie and the preparation of the collection of PHP code, and you can put control of the site, when the knowledge To click the URL of your structure after the implementation of the PHP code.

4, Cookie security Suitable for: all hope that the readers to online safety

1.Cookie deception

Cookie record the user’s account ID, information such as passwords, if the Internet transmission, usually using a MD5 encryption methods. This encrypted the information, even if the network intercepted some people with ulterior motives, nor do not know, because he saw no point in just a few of the letters and numbers. Now, however, the problems encountered is that the Cookie intercepted these people do not know the meaning of string, they have to do to other people’s Cookie submitted to the server, and can be verified, they will be able to impersonate the victim’s identity, the landing site. This method is called Cookie deception. Cookie deception is the precondition for the realization of the verification process server there are loopholes, and pretending to be pretending to be the person Cookie information. The current site of the verification process to remove all illegal sign is very difficult, for example, the preparation of the language used in the verification process there may be loopholes. And to get others Cookie is very easy, with the support of Cookie written on a small section of the code can be achieved (see specific methods c), as long as the networks put this code, then all of the Cookie can be collected. If a forum to allow the HTML code or allow the use of Flash on the label can use these technologies to collect Cookie code into the Forum, then to the post for an attractive theme to write on interesting content, will soon be able to collect a lot of Cookie . At the Forum, many people were on the password to this method of stealing. As for how to guard against, there is currently no vaccine or treatment, we can only use the usual method of protection, not to use an important forum password, and do not use IE automatically saved password feature, and try not to do not understand Dixi landing site.

2.Flash code hidden danger

Flash in a getURL () function, Flash can use this function automatically open the designated website. So it might lead you to a site contains malicious code. Example, when you enjoy on a computer in their exquisite Flash animation, the animation frames, the code may have been quietly connect to the Internet, and open a small contains a special code pages. This page can collect your Cookie, can do some other things, such as on your machine even planted Trojan format your hard drive, and so on. The Flash of such acts, the site can not be prohibited because it is an internal document of Flash. We can do, if it is possible to open here in the local firewall, if the firewall prompted the data packets sent out to you do not know, the best prohibited. If it is on the Internet shows, the best to find some well-known large site.