当前位置:网站首页>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 :
边栏推荐
- Netease smart enterprises enter the market against the trend, and there is a new possibility for game industrialization
- Recommended areas - ways to explore users' future interests
- Spir - V premier aperçu
- JVM_ 15_ Concepts related to garbage collection
- Recursive method to realize the insertion operation in binary search tree
- 直播系统代码,自定义软键盘样式:字母、数字、标点三种切换
- 一图看懂!为什么学校教了你Coding但还是不会的原因...
- Leetcode 208. 实现 Trie (前缀树)
- [the most complete in the whole network] |mysql explain full interpretation
- 3D vision - 4 Getting started with gesture recognition - using mediapipe includes single frame and real time video
猜你喜欢
Superfluid_ HQ hacked analysis
BiShe - College Student Association Management System Based on SSM
Folio.ink 免费、快速、易用的图片分享工具
Finding the nearest common ancestor of binary tree by recursion
ADS-NPU芯片架构设计的五大挑战
How to extract MP3 audio from MP4 video files?
Unity | two ways to realize facial drive
Finding the nearest common ancestor of binary search tree by recursion
Leetcode study - day 35
Une image! Pourquoi l'école t'a - t - elle appris à coder, mais pourquoi pas...
随机推荐
Blue Bridge Cup embedded stm32g431 - the real topic and code of the eighth provincial competition
Alibaba-Canal使用详解(排坑版)_MySQL与ES数据同步
Condition and AQS principle
Leetcode sword finger offer 59 - ii Maximum value of queue
Huawei Hrbrid interface and VLAN division based on IP
GNSS terminology
晶振是如何起振的?
ORA-00030
General operation method of spot Silver
Une image! Pourquoi l'école t'a - t - elle appris à coder, mais pourquoi pas...
Differences between standard library functions and operators
[solved] how to generate a beautiful static document description page
黄金价格走势k线图如何看?
XSS learning XSS lab problem solution
【全網最全】 |MySQL EXPLAIN 完全解讀
一圖看懂!為什麼學校教了你Coding但還是不會的原因...
Unity | 实现面部驱动的两种方式
Idea sets the default line break for global newly created files
Finding the nearest common ancestor of binary tree by recursion
JVM_ 15_ Concepts related to garbage collection