当前位置:网站首页>The difference between cokkie and session
The difference between cokkie and session
2022-06-29 09:19:00 【amateur12】
cookie Limited length , Maximum 4kb
cookie Save on client ( browser ),session Save on the server side .
session Can store any data type , In general, we can session Keep some common variable information in , for instance UserId etc. .
cookie Can be set to hold for a long time , For example, we often use the default login function ,session Short general failure time , Client shutdown or session Timeout will fail .
session More secure :
sessionID There is cookie in , To break through session First of all, break through cookie
sessionID You want the user to log in or open session Only then , All breakthroughs cookie Not necessarily session
session Turn it on again , The first one expired
also sessionID It's encrypted.
边栏推荐
- Record the field name dynamically modified by SetData of wechat applet
- Analysis of c voice endpoint detection (VAD) implementation process
- 微信小程序自定义多项选择器
- 基于区域注意的通用目标检测
- Macros, functions, and inline functions
- MH/T 6040航空材料烟密度试验
- 记微信小程序setData动态修改字段名
- ServerApp.iopub
- 记自定义微信小程序顶部导航栏
- 【To .NET】C#数据模型,从Entity Framework Core到LINQ
猜你喜欢

Debug H5 page -vconsole

npm常用命令

Debugging H5 page -weinre and spy debugger real machine debugging

Mqtt second session -- emqx high availability cluster implementation

Activemq消息组件发布订阅ReDelivery消息重新投递

Unity C # e-learning (12) -- protobuf generation protocol

SSD Improvement cfenet

pytorch总结学习系列-操作

实例报错IOPub data rate exceeded

UE4 去掉材质中Mask透明白边
随机推荐
Universal target detection based on region attention
Verilog expression
深卷积神经网络时代的目标检测研究进展
在 golang 中是如何对 epoll 进行封装的?
Training kernel switching using GPU
Verilog size and +: Using
记一些笔试题
Open3D 最远点采样(FPS)
来个小总结吧
使用GPU训练kernel切换
cmd进入虚拟机
mysql insert 时出现Deadlock死锁场景分析
GPU训练云平台记录
手写VirtualDOM
MySQL uses union all to count the total number of combinations of multiple tables and the number of tables respectively
微信小程序跳转公众号图文内容
微信小程序项目:tab导航栏
DevOps到底是什么意思?
verilog 移位操作符
Debugging H5 page -weinre and spy debugger real machine debugging