当前位置:网站首页>On cookies and session
On cookies and session
2022-07-28 06:53:00 【Xiao Qiao】
Catalog
Cookie
(1) Format :
Standard request header :cookie: key = value
Standard response header :set-cookie: Key value
(2) effect :
(3) principle :

(4) Application scenarios :
User login free (remember me)
① Enter the account and password , Check login free
② Click the login button , send out http request , Server return http Respond to
③ The browser automatically saves “ User information ” On the local hard disk , Every time I ask , Request headers carry cookie: User information
( Turn off the browser in time , Visit this again url, Will also carry )
Session
(1) Concept
conversation , Indicates after login , Before cancellation , And there is no timeout between the last operation and the next operation ( Specified conversation time ) It's all a conversation .
(2) effect
Identify the valid user who logged in
(3) principle
The server saves user information ( When logging in, verify that the account and password pass , Save user information ), When accessing sensitive resources , User information saved through the server , Determine whether to log in , Whether to allow access to .


边栏推荐
- MySQL主主
- KVM hot migration
- TCP/IP五层模型
- 如何描述一个BUG以及BUG级别的定义、生命周期
- Test interview questions collection (I) | common required questions and procedures of software testing (with answers)
- Hdu-1097-a hard puzzle (fast power)
- Graphic pipeline foundation (II)
- CentOS7部署MySQL数据库服务器
- HDU-5805-NanoApe Loves Sequence(思维题)
- 网络——传输层(详细版)
猜你喜欢

Using C language to realize three piece chess games

Cocos2d-x learning notes Tile Map tiledmap

DNS域名解析服务

技术分享 | 使用 cURL 发送请求

Technology sharing | common proxy tools for interface testing

DNS forward resolution experiment

修复故障扇区

How to simulate the implementation of strcpy library functions

Which is the best air conduction Bluetooth headset? Air conduction Bluetooth headset ranking

prometheus监控nacos
随机推荐
Which is the best and most cost-effective air conduction headset recommended
Graphic pipeline foundation (I)
2022 Tanabata gift recommendation! Nice, cheap and practical gift recommendation
网络——网络层
C language memcpy library functions and the role of memmove
What is a linear table?
修复故障扇区
What is the most practical gift for Tanabata? A gift that will never go wrong is worth buying
测试面试题集锦(五)| 自动化测试与性能测试篇(附答案)
Water drop effect on umbrella
MySQL master master
raid磁盘阵列
SSAO by computer shader (I)
HDU-1159-CommonSubsequence(LCS最长公共子序列)
Which is the best air conduction Bluetooth headset? Air conduction Bluetooth headset ranking
SSAO by computer shader (III)
手把手教你三步完成测试监控系统搭建
Question brushing record ---- reverse the linked list (reverse the whole linked list)
链表中结点的插入和删除
技术分享 | 如何模拟真实使用场景?mock 技术来帮你