当前位置:网站首页>The difference between session and cookie
The difference between session and cookie
2022-07-24 07:40:00 【yn20000227】
1、 Data storage location :cookie The data is stored on the client's browser ,session Data on the server .
2、 Security :cookie Not very safe , Others can analyze the local cookie And carry on cookie cheating , Should be used in consideration of safety session.
3、 Server performance :session It will be saved on the server for a certain period of time . When visits increase , It will take up the performance of your server , Consider reducing server performance , Should be used cookie.
4、 data size : Single cookie The saved data cannot exceed 4K, Many browsers limit a site to save at most 20 individual cookie.
5、 Information importance : Consider storing important information such as login information as session, Other information if needed to be retained , Can be placed in cookie in .
边栏推荐
- hcip第八天笔记
- 服务漏洞&FTP&RDP&SSH&rsync
- php链路日志方案
- 【sklearn】tree.DecisionTreeClassifier
- Feature Selective Anchor-Free Module for Single-Shot Object Detection
- Sense dimension design responsive layout
- Selenium basic knowledge automatic search
- HCIP第七天
- [cloud native] MySQL index analysis and query optimization
- Opencascade notes: GP package
猜你喜欢
随机推荐
Vulnhub DC1
23.组件自定义事件
Selenium basic knowledge multi window processing
Kali安装pip以及pip换源
觉维设计响应式布局
China trichlorosilane Market Forecast and Strategic Research Report (2022 Edition)
【Pytorch】conv2d torchvision.transforms
Jackson 解析 JSON 详细教程
Deep learning two or three things - review those classical convolutional neural networks
【HiFlow】腾讯云HiFlow场景连接器实现校园信息管理智能化
Selenium use
HCIP第七天
Oauth2==sso three protocols. Oauth2 four modes
C语言文件操作
Error when using PIP: pip is configured with locations that requires tls/ssl
HCIP第十天笔记
Notes on the basics of using parameters in libsvm (1)
PHP link log scheme
About using the alignment function of VMD
AMD64 (x86_64) architecture ABI document: upper









