当前位置:网站首页>cookie、session、token
cookie、session、token
2022-06-25 21:59:00 【orangeox】
cookie、session、token
session机制中大量的数据存在服务器中,导致服务器压力增加,且在多服务器的情况下,只有接收的服务器才具有当前用户的sessionID,而其他服务器是没有的,会带来很大的问题。
token签名验证的方式来识别用户的身份,不会将大量的数据存储在服务端。减轻了服务器的压力。
不同的用户访问服务端的时候会在session对象中存储键值对,“键”用来存储开启这个用户信息的“钥匙”,在登录成功后,“钥匙”通过cookie返回给客户端,客户端存储为sessionId记录在cookie中。当客户端再次访问时,会默认携带cookie中的sessionId来实现会话机制。
session是基于cookie的。
参考:
https://blog.csdn.net/m0_46251547/article/details/123456692
边栏推荐
- What is CDN acceleration
- STM32开发板+机智云AIoT+家庭监测控制系统
- Which PHP open source works deserve attention
- Problem recording and thinking
- 2022年河南省第一届职业技能大赛网络安全项目试题
- ES6-- 模板字符串、对象的简化写法、箭头函数
- UE4_ Ue5 combines the offline voice recognition plug-in for speech recognition
- 电路模块分析练习5(电源)
- My C language learning process
- Live800 online customer service system: do business across time and space, starting from each interaction
猜你喜欢

记一次beego通过go get命令后找不到bee.exe的坑

LM small programmable controller software (based on CoDeSys) note XVII: PTO pulse function block

问题记录与思考

剑指 Offer 46. 把数字翻译成字符串(DP)

UE4_ Ue5 combines the offline voice recognition plug-in for speech recognition

【无标题】打开一个项目连接,无法正常显示时,ping一下ip

ES6 - numerical extension and object extension

C language (I)

为什么OpenCV计算的帧率是错误的?
[email protected]@COLLATION_CONNECTION */"/>.sql数据库导入错误:/*!40101 SET @[email protected]@COLLATION_CONNECTION */
随机推荐
Mysql database index
ES6-- 集合
论文笔记: 多标签学习 MSWL
Live800 online customer service system: do business across time and space, starting from each interaction
.sql数据库导入错误:/*!40101 SET @[email protected]@COLLATION_CONNECTION */
Unity technical manual - life cycle rotation rotationoverlifetime- speed rotation rotationbyspeed- and external forces
What is CDN acceleration
ES6-Const常量与数组解构
2、一个向量乘它的转置,其几何意义是什么?
Utilisation de la classe Ping d'Unity
Leetcode(435)——无重叠区间
The wisdom of questioning? How to ask questions?
Comp2913 database
As a programmer, how can we learn, grow and progress happily? (personal perception has nothing to do with technology)
Paper notes: multi tag learning MSWl
2022年河南省第一届职业技能大赛网络安全项目试题
Baidu: in 2022, the top ten hot spots will rise and the profession will be released. There is no suspense about the first place!
小程序-视图与逻辑
App test points
Unity technical manual - particle emission and life cycle velocity sub module