当前位置:网站首页>Cookie concept, basic use, principle, details and Chinese transmission
Cookie concept, basic use, principle, details and Chinese transmission
2022-07-06 01:25:00 【Rain |】
Cookie Exists in the browser , The browser can put Cookie The response is sent to the server , The browser can also request from the server Cookie
According to Cookie To set the required interface , Such as account number Remember my function
Basic use :
The browser sends Cookie:
1. establish Cookie
2. send out Cookie To the server
Get the server 's Cookie Array :
1. Receive all on the browser Cookie
2. Traverse to find what you need Cookie Output
principle :
Cookie The implementation is based on Http Agreed
Response head :set-cookie
Request header :cookie
If Tomcat It is found that there is Cookie, Then it will send a response header , What's in it is Cookie The key/value pair , The same applies to request headers
details :
By default Cookie The lifetime of is destroyed as the browser closes
have access to cookie.setMaxAge( Survival time ) Set up Cookie Life time of
A positive number is the survival time
A negative number means that the default browser is closed and destroyed
0 To delete Cookie
Response Chinese Cookie:
Send and get servers Cookie when , Use URL Encoding and decoding can solve
Case study :


边栏推荐
- Idea sets the default line break for global newly created files
- 视频直播源码,实现本地存储搜索历史记录
- 现货白银的一般操作方法
- ADS-NPU芯片架构设计的五大挑战
- leetcode刷题_反转字符串中的元音字母
- Docker compose配置MySQL并实现远程连接
- VMware Tools安装报错:无法自动安装VSock驱动程序
- CocoaPods could not find compatible versions for pod 'Firebase/CoreOnly'
- FFT learning notes (I think it is detailed)
- WordPress collection plug-in automatically collects fake original free plug-ins
猜你喜欢

Differences between standard library functions and operators

Une image! Pourquoi l'école t'a - t - elle appris à coder, mais pourquoi pas...

XSS learning XSS lab problem solution

A picture to understand! Why did the school teach you coding but still not

VMware Tools安装报错:无法自动安装VSock驱动程序

MATLB | real time opportunity constrained decision making and its application in power system

A Cooperative Approach to Particle Swarm Optimization

Threedposetracker project resolution
![[understanding of opportunity-39]: Guiguzi - Chapter 5 flying clamp - warning 2: there are six types of praise. Be careful to enjoy praise as fish enjoy bait.](/img/3c/ec97abfabecb3f0c821beb6cfe2983.jpg)
[understanding of opportunity-39]: Guiguzi - Chapter 5 flying clamp - warning 2: there are six types of praise. Be careful to enjoy praise as fish enjoy bait.

Ubantu check cudnn and CUDA versions
随机推荐
Distributed base theory
Some features of ECMAScript
How to extract MP3 audio from MP4 video files?
Netease smart enterprises enter the market against the trend, and there is a new possibility for game industrialization
基于DVWA的文件上传漏洞测试
A glimpse of spir-v
MATLB | real time opportunity constrained decision making and its application in power system
Recursive method to realize the insertion operation in binary search tree
About error 2003 (HY000): can't connect to MySQL server on 'localhost' (10061)
Loop structure of program (for loop)
A Cooperative Approach to Particle Swarm Optimization
ctf. Show PHP feature (89~110)
Building core knowledge points
What is weak reference? What are the weak reference data types in ES6? What are weak references in JS?
Use of crawler manual 02 requests
Leetcode1961. 检查字符串是否为数组前缀
Tcpdump: monitor network traffic
在产业互联网时代,将会凭借大的产业范畴,实现足够多的发展
有谁知道 达梦数据库表的列的数据类型 精度怎么修改呀
伦敦银走势中的假突破