当前位置:网站首页>Take you in-depth understanding of cookies
Take you in-depth understanding of cookies
2022-08-05 06:20:00 【lsely】
Take you in-depth understanding of cookies
This article only introduces some basic knowledge of cookies and the components that make up cookies, and does not introduce usage.
What the heck is a cookie?
Cookie, the introduction in Baidu Baike refers to "data stored on the user's local terminal",In human terms, it is similar to a browser's local cache, which is a piece of text that a website uses to identify a user.Generally speaking, when we open a website, the web server of the website will generate an ID information for the user. It can be said that this is the user's network "ID card", and then this "ID card" will be saved locally on the user's computer.If the user logs in to the website again, the web server can read the text and obtain various information about the user. This process is login.
Cookie sending mechanism
In general, whenever we log in to a website for the first time, the web server will send a cookie to the user's local, and in subsequent logins, the user's local cookie will be sent to the web server to verify theirAccount, represented by an image:
The composition of cookies
Cookies are essentially text data. Generally, this data is encrypted and consists of name, value, and several equivalents used to control the scope of use or valid time of the cookie.
- Name and Value Name/Value: The name and value of the cookie.
- Expires Expires: The expiration date of the cookie.Expriers are divided into two types of storage: session and persistent.Session cookies are stored in the user's memory and are cleared when the browser is launched; persistent cookies are stored on the user's local hard drive and will not expire until the user logs out.Speaking human words is a temporary storage, a long-term storage.
- Scope of use Domain: The scope of use of cookies.
- Security Secure: Whether the cookie uses the Https protocol.
Summary
Cookie is the data (encrypted) that the website uses to identify the user and saved on the user's local area. It is the text data temporarily or permanently saved locally by the user, and generally consists of name, value, validity period, and scope of use.
边栏推荐
- Small example of regular expression--validate email address
- [Day8] (Super detailed steps) Use LVM to expand capacity
- 交换机原理
- [Day5] Soft and hard links File storage, deletion, directory management commands
- CIPU, what impact does it have on the cloud computing industry?
- spark source code - task submission process - 3-ApplicationMaster
- Call the TensorFlow Objection Detection API for object detection and save the detection results locally
- [问题已处理]-jenkins流水线checkout超时
- Quick question and quick answer - FAQ of Tencent Cloud Server
- Mina的长连接和短连接
猜你喜欢
随机推荐
The problem come from line screening process
网络布线与数制转换
交换机原理
增长:IT运维发展趋势报告
ALC实验
IP address and subnet division
[问题已处理]-虚拟机报错contains a file system with errors check forced
云计算——osi七层与TCP\IP协议
618, you may be able to wake up a little bit
传输层协议(TCP3次握手)
OpenCV3.0 is compatible with VS2010 and VS2013
Getting Started 05 Using cb() to indicate that the current task is complete
浏览器存储WebStorage
LinkSLA坚持用户第一,打造可持续的运维服务方案
跨域的十种解决方案详解(总结)
Billions of IT operations in the market, the product by strength to speak
The spark operator - repartition operator
VLAN details and experiments
lvm logical volume and disk quota
Will intelligent operation and maintenance replace manual operation and maintenance?