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


边栏推荐
- Xunrui CMS plug-in automatically collects fake original free plug-ins
- Redis' cache penetration, cache breakdown, cache avalanche
- 2020.2.13
- A glimpse of spir-v
- XSS learning XSS lab problem solution
- Interview must brush algorithm top101 backtracking article top34
- WordPress collection plug-in automatically collects fake original free plug-ins
- 直播系统代码,自定义软键盘样式:字母、数字、标点三种切换
- JMeter BeanShell的基本用法 一下语法只能在beanshell中使用
- A Cooperative Approach to Particle Swarm Optimization
猜你喜欢

Docker compose configures MySQL and realizes remote connection
![[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.

【详细】快速实现对象映射的几种方式

伦敦银走势中的假突破

Huawei converged VLAN principle and configuration

Opinions on softmax function

Electrical data | IEEE118 (including wind and solar energy)

WordPress collection plug-in automatically collects fake original free plug-ins

Hcip---ipv6 experiment

ADS-NPU芯片架构设计的五大挑战
随机推荐
[solved] how to generate a beautiful static document description page
A picture to understand! Why did the school teach you coding but still not
Ubantu check cudnn and CUDA versions
GNSS terminology
Differences between standard library functions and operators
Leetcode 剑指 Offer 59 - II. 队列的最大值
C web page open WinForm exe
Code Review关注点
Introduction to robotics I. spatial transformation (1) posture, transformation
Remember that a version of @nestjs/typeorm^8.1.4 cannot be obtained Env option problem
Huawei converged VLAN principle and configuration
Opinions on softmax function
Pbootcms plug-in automatically collects fake original free plug-ins
WordPress collection plug-in automatically collects fake original free plug-ins
A Cooperative Approach to Particle Swarm Optimization
Recursive method to realize the insertion operation in binary search tree
电气数据|IEEE118(含风能太阳能)
Dede collection plug-in free collection release push plug-in
MySQL learning notes 2
How to get the PHP version- How to get the PHP Version?