当前位置:网站首页>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 :
边栏推荐
- FFT 学习笔记(自认为详细)
- FFT learning notes (I think it is detailed)
- Mysql--- query the top 5 students
- Hcip---ipv6 experiment
- XSS learning XSS lab problem solution
- 现货白银的一般操作方法
- About error 2003 (HY000): can't connect to MySQL server on 'localhost' (10061)
- PHP error what is an error?
- Recommended areas - ways to explore users' future interests
- Redis' cache penetration, cache breakdown, cache avalanche
猜你喜欢
Unity | 实现面部驱动的两种方式
Electrical data | IEEE118 (including wind and solar energy)
Ubantu check cudnn and CUDA versions
leetcode刷题_验证回文字符串 Ⅱ
Folio.ink 免费、快速、易用的图片分享工具
Dedecms plug-in free SEO plug-in summary
伦敦银走势中的假突破
[技术发展-28]:信息通信网大全、新的技术形态、信息通信行业高质量发展概览
Unity | two ways to realize facial drive
3D model format summary
随机推荐
黄金价格走势k线图如何看?
JVM_ 15_ Concepts related to garbage collection
PHP error what is an error?
Pbootcms plug-in automatically collects fake original free plug-ins
3D模型格式汇总
Huawei Hrbrid interface and VLAN division based on IP
直播系统代码,自定义软键盘样式:字母、数字、标点三种切换
Redis' cache penetration, cache breakdown, cache avalanche
Leetcode study - day 35
什么是弱引用?es6中有哪些弱引用数据类型?js中的弱引用是什么?
Tcpdump: monitor network traffic
3D vision - 4 Getting started with gesture recognition - using mediapipe includes single frame and real time video
3D model format summary
SCM Chinese data distribution
Cglib dynamic agent -- example / principle
Dedecms plug-in free SEO plug-in summary
一圖看懂!為什麼學校教了你Coding但還是不會的原因...
Introduction to robotics I. spatial transformation (1) posture, transformation
How to get all sequences in Oracle database- How can I get all sequences in an Oracle database?
2020.2.13