Introduction and functions of cookies

Source: Internet
Author: User

Introduction and functions of cookies

Cookie introduction:

Cookieappsserver temporarily stores your computer information (.txt file), so that the server can identify your computer through the Http transmission status. When you are on a browser website, the Web server uhixian sends a small piece of information to your computer, and the Cookie will help you record the text or some choices on the website.

When you access the same website again next time, the Web server will first check whether there is any information about the previous Cookie. If yes, it will judge the user based on the content in the Cookie, send specific webpage content to you.

Cookie function:

What is the function of cookie? Currently, many websites use the new user registration option. Sometimes, when you visit the website next time, you will be automatically recognized and posted to you. Do you feel very kind? Of course, this kind of knowledge surface phenomenon, more importantly, the website can use cookies to track the habits of users accessing the website, such as when to visit and what pages to visit, the duration of each webpage.

Using this information can provide users with personalized services, and can also be used as a tool to understand all user behaviors. It provides some reference value for the improvement of website business strategies. For example, if you check flight schedules at an airline site, the site may create Cookies containing your travel plan, it may also only record the web pages you have visited on the site. During your next visit, the website will adjust the displayed content according to your situation, put the content you are interested in at the forefront. This is an advanced COokie application.

Currently, the most widely used Cookie is to record user login information, so that you do not need to enter your username or password for the next visit. Of course, this kind of convenience also has the problem of user information leakage, especially when multiple users share one computer.

Life cycle:

Cookie can maintain the login information to the user's next session with the server. In other words, when accessing the same website next time, the user will find that the user has logged on without having to enter the user name and password (of course, users cannot delete cookies manually ). Some cookies are deleted when the user exits the session, which can effectively protect personal privacy.

When Cokie is generated, an Expire value is set. This is the Cookie lifecycle. During this period, the Cookie is valid and will be cleared if it exceeds the lifecycle. Some pages set the Cookie lifecycle to "0" or a negative value, so that when the browser is closed, the Cookie is cleared immediately, and user information is not recorded, making it safer.

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.