当前位置:网站首页>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.
边栏推荐
- 千亿IT运维市场,产品要凭实力说话
- Hugo搭建个人博客
- What are some things that you only know when you do operation and maintenance?
- markdown编辑器模板
- Introductory document 05-2 use return instructions the current task has been completed
- spark source code - task submission process - 3-ApplicationMaster
- Will intelligent operation and maintenance replace manual operation and maintenance?
- 跨域的十种解决方案详解(总结)
- time complexity and space complexity
- 技术分享杂七杂八技术
猜你喜欢

传输层协议

【Day8】RAID Disk Array

Introductory document 05-2 use return instructions the current task has been completed

Mina断线重连

Account and Permission Management

Getting Started 04 When a task depends on another task, it needs to be executed in sequence

VLAN details and experiments

正则表达式小实例--验证邮箱地址

【Machine Learning】1 Univariate Linear Regression

Dsf5.0 bounced points determine not return a value
随机推荐
flink cdc 目前支持Gauss数据库源吗
Mongodb查询分析器解析
VLAN详解及实验
Small example of regular expression--validate email address
OpenCV3.0 is compatible with VS2010 and VS2013
Xiaodu Xiaodu is here!
Logical volume creation
spark source code - task submission process - 2-YarnClusterApplication
运维的高光时刻,从智能化开始
正则表达式小实例--去掉字符串中间和两边的空格
Operation and maintenance engineer, come and pick up the wool
King power volume LinkSLA, realize operations engineer is happy fishing
运维工程师,快来薅羊毛
ALC实验
Proprietary host CDH
618,你也许可以清醒亿点点
[Day1] (Super detailed steps) Build a soft RAID disk array
Why can't I add a new hard disk to scan?How to solve?
【Day8】Knowledge about disk and disk partition
跨域的十种解决方案详解(总结)