当前位置:网站首页>cookie session 和 token
cookie session 和 token
2022-06-26 08:38:00 【你还差的远呢。】
cookie 的缺点
默认跨域
安全性差容易 csrf攻击
存储内存小
不适用于移动端 跨域不共享cookie
token缺点
比cookie更占内存和带宽
秘钥泄漏,用户所有信息丢失
存在客户端,无法在服务端注销
token 优点
无状态
支持跨域
防止csrf攻击
支持移动端
不占服务端内存
session优点
简单易学
用户信息存在服务端,可以快速封禁某个用户
缺点
占服务器内存,成本高
默认有跨域
多进程多服务器不好同步, 使用redis
边栏推荐
- How to correctly PIP install pyscipopt
- 【IVI】15.1.2 系统稳定性优化篇(LMKD Ⅱ)PSI 压力失速信息
- Euler function: find the number of numbers less than or equal to N and coprime with n
- 修复小程序富文本组件不支持video视频封面、autoplay、controls等属性问题
- dedecms小程序插件正式上线,一键安装无需任何php或sql基础
- Whale conference one-stop intelligent conference system helps organizers realize digital conference management
- Data warehouse (1) what is data warehouse and what are the characteristics of data warehouse
- 利用无线技术实现分散传感器信号远程集中控制
- HDU - 6225 Little Boxes(__int128的使用)
- Performance comparison of unaryexpr's function on matrix elements in eigen Library
猜你喜欢

Data warehouse (1) what is data warehouse and what are the characteristics of data warehouse

Remote centralized control of distributed sensor signals using wireless technology

Using MySQL and Qt5 to develop takeout management system (I): environment configuration

Implementation of ffmpeg audio and video player

20220623 Adobe Illustrator入门

Principle of playing card image segmentation

Slider verification - personal test (JD)

Nebula diagram_ Object detection and measurement_ nanyangjx

隐藏式列表菜单以及窗口转换在Selenium 中的应用

深度学习论文阅读目标检测篇(七)中文版:YOLOv4《Optimal Speed and Accuracy of Object Detection》
随机推荐
Yolov5进阶之五GPU环境搭建
Euler function: find the number of numbers less than or equal to N and coprime with n
Google Chrome collection
Object extraction_ nanyangjx
2021 software university ranking crawler program
Yolov5进阶之二安装labelImg
dedecms小程序插件正式上线,一键安装无需任何php或sql基础
在哪个软件上开户比较安全
1.21 study logistic regression and regularization
Slider verification - personal test (JD)
Selenium 搭建 Cookies池 绕过验证反爬登录
Stanford doggo source code study
编程训练7-日期转换问题
Yolov5进阶之四训练自己的数据集
直播回顾 | smardaten李鸿飞解读中国低/无代码行业研究报告:风向变了
多台三菱PLC如何实现无线以太网高速通讯?
Optimize quiver function in MATLAB to draw arrow diagram or vector diagram (1) -matlab development
phpcms v9商城模块(修复自带支付宝接口bug)
Polka lines code recurrence
Code de mise en œuvre de l'intercepteur et du filtre