当前位置:网站首页>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 :
边栏推荐
- Hcip---ipv6 experiment
- Loop structure of program (for loop)
- [day 30] given an integer n, find the sum of its factors
- Use of crawler manual 02 requests
- VMware Tools installation error: unable to automatically install vsock driver
- Paging of a scratch (page turning processing)
- 【全網最全】 |MySQL EXPLAIN 完全解讀
- 电气数据|IEEE118(含风能太阳能)
- Gartner发布2022-2023年八大网络安全趋势预测,零信任是起点,法规覆盖更广
- Crawler request module
猜你喜欢
Ubantu check cudnn and CUDA versions
DOM introduction
Huawei Hrbrid interface and VLAN division based on IP
A Cooperative Approach to Particle Swarm Optimization
MySQL learning notes 2
Docker compose配置MySQL并实现远程连接
Opinions on softmax function
False breakthroughs in the trend of London Silver
[detailed] several ways to quickly realize object mapping
Building core knowledge points
随机推荐
Dede collection plug-in free collection release push plug-in
FFT learning notes (I think it is detailed)
Une image! Pourquoi l'école t'a - t - elle appris à coder, mais pourquoi pas...
网易智企逆势进场,游戏工业化有了新可能
yii中console方法调用,yii console定时任务
Basic process and testing idea of interface automation
电气数据|IEEE118(含风能太阳能)
[day 30] given an integer n, find the sum of its factors
How to see the K-line chart of gold price trend?
Recursive method to realize the insertion operation in binary search tree
Leetcode study - day 35
Xunrui CMS plug-in automatically collects fake original free plug-ins
How to get all sequences in Oracle database- How can I get all sequences in an Oracle database?
Docker compose configures MySQL and realizes remote connection
Leetcode 208. Implement trie (prefix tree)
3D模型格式汇总
File upload vulnerability test based on DVWA
ctf. Show PHP feature (89~110)
Opinions on softmax function
朝招金安全吗 会不会亏损本金