当前位置:网站首页>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 :
边栏推荐
- Loop structure of program (for loop)
- Opinions on softmax function
- C web page open WinForm exe
- Leetcode daily question solution: 1189 Maximum number of "balloons"
- Pbootcms plug-in automatically collects fake original free plug-ins
- Blue Bridge Cup embedded stm32g431 - the real topic and code of the eighth provincial competition
- MUX VLAN configuration
- General operation method of spot Silver
- CocoaPods could not find compatible versions for pod 'Firebase/CoreOnly'
- Building core knowledge points
猜你喜欢
[detailed] several ways to quickly realize object mapping
A Cooperative Approach to Particle Swarm Optimization
037 PHP login, registration, message, personal Center Design
About error 2003 (HY000): can't connect to MySQL server on 'localhost' (10061)
3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
Idea sets the default line break for global newly created files
The inconsistency between the versions of dynamic library and static library will lead to bugs
Who knows how to modify the data type accuracy of the columns in the database table of Damon
Dedecms plug-in free SEO plug-in summary
Introduction to robotics I. spatial transformation (1) posture, transformation
随机推荐
Finding the nearest common ancestor of binary tree by recursion
【详细】快速实现对象映射的几种方式
一圖看懂!為什麼學校教了你Coding但還是不會的原因...
[le plus complet du réseau] | interprétation complète de MySQL explicite
A glimpse of spir-v
Leetcode 208. 实现 Trie (前缀树)
Leetcode skimming questions_ Sum of squares
[Yu Yue education] Liaoning Vocational College of Architecture Web server application development reference
3D模型格式汇总
2020.2.13
MYSQL---查询成绩为前5名的学生
Recursive method to realize the insertion operation in binary search tree
How to extract MP3 audio from MP4 video files?
Is chaozhaojin safe? Will it lose its principal
leetcode刷题_平方数之和
伦敦银走势中的假突破
Recursive method converts ordered array into binary search tree
WGet: command line download tool
GNSS terminology
A Cooperative Approach to Particle Swarm Optimization