Joke Collection Website - News headlines - What is the function of Cookie?
What is the function of Cookie?
At present, the most widely used Cookies is to record the user's login information, so that you don't need to enter the user name and password for the next visit-of course, this convenience also has the problem of user information leakage, especially when multiple users use a computer.
form
A Cookie is a small piece of text data not exceeding 4KB, which consists of a name, a value and several other optional attributes, and is used to control the validity, security and scope of use of cookies. These include:
(1)Name/Value: set the name of the Cookie and its corresponding value. For authentication cookies, the value value includes the access token provided by the Web server.
(2)Expires attribute: Set the lifetime of Cookie. There are two types of Cookie: conversational and persistent. By default, the Expires property is a session Cookie, which is only stored in the memory of the client and will be invalid when the user closes the browser. The persistent Cookie will be saved in the user's hard disk until the expiration of the lifetime or the user directly clicks the "logout" button in the webpage to end the session.
Above content reference: Baidu Encyclopedia -cookie
- Previous article:Congratulations on the domineering words of picking up the car.
- Next article:How to draw a picture that smoking is harmful to health
- Related articles
- Poetry about suffering and adversity
- Sample essay for host of graduates experience exchange meeting
- What is an interesting sentence?
- What disease is urticaria and how to cure it?
- Spring School Forest Fire Prevention Awareness Month Activity Plan
- Warning slogans in the library
- How to receive books and periodicals ordered now?
- CBA will sing a song before every game: Braving the enemy's gunfire ... Excuse me: Do you have to brave the enemy's gunfire when playing basketball? Is it suitable?
- Chang Xia's WeChat article push
- The poster also points out the style of the novel.