当前位置:网站首页>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 :


边栏推荐
- Live video source code, realize local storage of search history
- The basic usage of JMeter BeanShell. The following syntax can only be used in BeanShell
- Daily practice - February 13, 2022
- [Yu Yue education] Liaoning Vocational College of Architecture Web server application development reference
- Dede collection plug-in free collection release push plug-in
- 电气数据|IEEE118(含风能太阳能)
- Internship: unfamiliar annotations involved in the project code and their functions
- 记一个 @nestjs/typeorm^8.1.4 版本不能获取.env选项问题
- 2022 Guangxi Autonomous Region secondary vocational group "Cyberspace Security" competition and its analysis (super detailed)
- How to see the K-line chart of gold price trend?
猜你喜欢

Dede collection plug-in free collection release push plug-in

Recursive method to realize the insertion operation in binary search tree

晶振是如何起振的?

Loop structure of program (for loop)

General operation method of spot Silver

Xunrui CMS plug-in automatically collects fake original free plug-ins

3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
Folio.ink 免费、快速、易用的图片分享工具

MUX VLAN configuration

Dedecms plug-in free SEO plug-in summary
随机推荐
Obstacle detection
Netease smart enterprises enter the market against the trend, and there is a new possibility for game industrialization
基於DVWA的文件上傳漏洞測試
2022 Guangxi Autonomous Region secondary vocational group "Cyberspace Security" competition and its analysis (super detailed)
Opinions on softmax function
Development trend of Ali Taobao fine sorting model
Leetcode 剑指 Offer 59 - II. 队列的最大值
Leetcode skimming questions_ Sum of squares
[solved] how to generate a beautiful static document description page
基于DVWA的文件上传漏洞测试
C web page open WinForm exe
How to get the PHP version- How to get the PHP Version?
Hcip---ipv6 experiment
[Yu Yue education] Liaoning Vocational College of Architecture Web server application development reference
DOM introduction
Some features of ECMAScript
Condition and AQS principle
Dedecms plug-in free SEO plug-in summary
WordPress collection plug-in automatically collects fake original free plug-ins
servlet(1)