当前位置:网站首页>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 :
边栏推荐
- 什么是弱引用?es6中有哪些弱引用数据类型?js中的弱引用是什么?
- 黄金价格走势k线图如何看?
- A picture to understand! Why did the school teach you coding but still not
- leetcode刷题_验证回文字符串 Ⅱ
- [机缘参悟-39]:鬼谷子-第五飞箝篇 - 警示之二:赞美的六种类型,谨防享受赞美快感如同鱼儿享受诱饵。
- 【详细】快速实现对象映射的几种方式
- Basic process and testing idea of interface automation
- 2022年广西自治区中职组“网络空间安全”赛题及赛题解析(超详细)
- internship:项目代码所涉及陌生注解及其作用
- Differences between standard library functions and operators
猜你喜欢
Unity | two ways to realize facial drive
Electrical data | IEEE118 (including wind and solar energy)
MATLB | real time opportunity constrained decision making and its application in power system
leetcode刷题_平方数之和
Leetcode skimming questions_ Verify palindrome string II
Dedecms plug-in free SEO plug-in summary
DOM introduction
普通人下场全球贸易,新一轮结构性机会浮出水面
leetcode刷题_反转字符串中的元音字母
[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.
随机推荐
2022 Guangxi Autonomous Region secondary vocational group "Cyberspace Security" competition and its analysis (super detailed)
Recursive method to realize the insertion operation in binary search tree
How to extract MP3 audio from MP4 video files?
[le plus complet du réseau] | interprétation complète de MySQL explicite
[Yu Yue education] Liaoning Vocational College of Architecture Web server application development reference
Finding the nearest common ancestor of binary search tree by recursion
普通人下场全球贸易,新一轮结构性机会浮出水面
037 PHP login, registration, message, personal Center Design
2020.2.13
3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
General operation method of spot Silver
Use of crawler manual 02 requests
直播系统代码,自定义软键盘样式:字母、数字、标点三种切换
Docker compose配置MySQL并实现远程连接
Recursive method converts ordered array into binary search tree
Mlsys 2020 | fedprox: Federation optimization of heterogeneous networks
Obstacle detection
Unity | two ways to realize facial drive
在产业互联网时代,将会凭借大的产业范畴,实现足够多的发展
SCM Chinese data distribution