当前位置:网站首页>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 .
边栏推荐
猜你喜欢

mysql查询当前节点的所有父级

2021-06-03pip error valueerror: unable to find resource t64.exe in package pip_ vendor.distlib

Introduction to C language I. branch and loop statements

无法自动装配,未找到“RedisTemplate类型的Bean

Influxdb未授权访问&CouchDB权限绕过

Deep analysis of data storage in memory

简易网闸-内网服务器安全获取外网数据

【云原生】MySql索引分析及查询优化

Using depth and normal textures in unity

Single Gmv has increased 100 times. What is the "general rule" behind the rise of popular brands?
随机推荐
Source code analysis of Nacos configuration center
The shortest distance of Y axis of 2D plane polyline
Advanced part of C language VI. file operation
Generate API documents using swagger2markup
C language advanced part III. string functions and memory operation functions
Using depth and normal textures in unity
C language to achieve mine sweeping game
hcip第十三天笔记
Selenium basic knowledge automatic login QQ space
剑指offer专项突击版第8天
Log in to the server using the fortress machine (springboard machine)
Vulnhub DC1
Amber tutorial A17 learning - concept
基于VSCode聊聊编译器那些事儿
numpy.concatenate
Requests crawl page source code data
Introduction to C language I. branch and loop statements
requests-爬取页面源码数据
InjectFix原理学习(实现修复加法的热更)
Appium doctor command error pit - resolved