当前位置:网站首页>Web Caching Technology
Web Caching Technology
2022-06-22 23:26:00 【Know the origin and know the destination】
cookie and session
Cookie: A mechanism for the client to save user information
Session:( Session control ) The server side stores a data structure , Used to track the status of users ,session Object stores the properties and configuration information required for a specific user session . This data can be saved in the cluster 、 database 、 In file .
Session Maintain user login status process :
The user submits the login form ,request
The server verifies the user name and password
After passing, the user information is stored in redis in ,key by session_id
server Back to respone Medium set-cookie The field contains the session_id,client Deposit upon receipt cookie in ,
client When sending a request to the server again , Will add your own... In the request header cookie Information ,server After receiving it, extract it and send it to redis Found in session, Complete business operations .
( More pictures will be added next time )
sticky and non-sticky
sticky: viscosity
non-sticky: Non viscous
边栏推荐
- 2021-04-14
- Enjoy high-performance computing! Here comes the Tianyi cloud HPC solution
- Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
- 异步FIFO
- LeakCanary 源码详解(2)
- 2020-12-20
- Enterprise digitalization is not a separate development, but a comprehensive SaaS promotion
- 2020-12-04
- js判断浏览器是否打开了控制台
- Spark SQL Start(2.4.3)
猜你喜欢

MySQL master-slave synchronization and its basic process of database and table division

wallys/WiFi6 MiniPCIe Module 2T2R 2 × 2.4GHz 2x5GHz

PHP7.3报错undefined function simplexml_load_string()

企业数字化不是各自发展,而是全面SaaS化推进
Learn redis with you (11) -- redis distributed lock

安装typescript环境并开启VSCode自动监视编译ts文件为js文件

SOA Service Oriented Architecture

The breakthrough of key chips hindering Huawei 5g mobile phones has been achieved, and domestic chips have gained 10% share

ArcGIS应用(二十)Arcgis 栅格图像符号系统提示“This dataset does not have valid histogram required for classificati…”

反向代理HAProxy
随机推荐
在Word中自定义多级列表样式
13. 罗马数字转整数
2020-12-20
2020-12-20
Synchronization circuit and cross clock domain circuit design 2 -- cross clock domain transmission (FIFO) of multi bit signals
LeakCanary 源码详解(2)
斐波那契数列合集
OJ每日一练——病毒的增生
2021-05-02
启牛app下载证券开户,是安全的吗?有风险嘛?
Spark SQL 访问json和jdbc数据源
剑指 Offer 07. 重建二叉树
Dip1000,1 of D
2021-01-29
【Kubernetes 系列】Kubernetes 概述
14. 最长公共前缀
好东西要分享啦
冒泡排序 指针
Zynq ultrascale + rfsoc zcu111 RF clock tree learning 1
输出字符串中最长的单词