当前位置:网站首页>Differences between cookies and sessions
Differences between cookies and sessions
2022-06-30 04:31:00 【A fat man】
cookie and session The difference between :
1、cookie The data is stored on the client's browser ,session Data on the server .
2、cookie Not very safe , Others can analyze the local COOKIE And carry on COOKIE Deception should be used in consideration of safety session.
3、session It will be saved on the server for a certain period of time . When visits increase , We will compare the performance of your server to reduce the performance of your server , Should be used COOKIE.
4、 Single cookie The saved data cannot exceed 4K, Many browsers limit a site to save at most 20 individual cookie.
5、 So personal advice : Store the login information and other important information as SESSION Other information if needed to be retained , Can be placed in COOKIE in
边栏推荐
- Everyone, Flink 1.13.6, mysql-cdc2.2.0, the datetime (6) class extracted
- Bean创建流程 与 lazy-init 延迟加载机制原理
- How to use div boxes to simulate line triangles
- 进程间通信之匿名管道
- Threejs realizes the simulation of river, surface flow, pipe flow and sea surface
- Redis sentry, persistence, master-slave, hand tear LRU
- Read / write lock example
- Project safety and quality
- OneNote software
- Learn about threads
猜你喜欢

JS inheritance

Technology sharing | broadcast function design in integrated dispatching

Redis cache avalanche, breakdown and penetration

el-upload上傳文件(手動上傳,自動上傳,上傳進度)
![Blue Bridge Cup: magic cube rotation [Vocational group]](/img/ba/aeae2744f3aaa1052b5af452f990e2.jpg)
Blue Bridge Cup: magic cube rotation [Vocational group]

管道实现进程间通信之命名管道

System programming summary

Input / output and interrupt technology -- microcomputer Chapter 6 learning notes

Matlab reads fig file and restores signal

With the deep integration of cloud platform, the "Xueba" objectscale in the object storage industry is coming
随机推荐
破局存量客群营销,试一下客户分群管理(含聚类模型等实操效果评估)
Myrpc version 5
I get n offers in two months. I don't have any difficult interviewers here
7-3 single source shortest circuit for strange play upgrade
MySQL DDL change
Directory operations and virtual file systems
Modifier of JS regular expression
How to solve the problem of link hyperlinks when trying to link the database?
Network high concurrency
idea灰屏问题
Project safety and quality
Knowledge - how to build rapport in sales with 3 simple skills
Everyone, Flink 1.13.6, mysql-cdc2.2.0, the datetime (6) class extracted
Salary management system based on servlet+jsp+mysql [source code + database]
Memorize unfamiliar words at SSM stage and update them from time to time
win10系统使用浏览器下载后,内容无故移动或删除
Ora-00907: missing right parenthesis problem supplement
Array of small C
[FPGA] IIC读写EEPROM 的实现
AI落地的新范式,就“藏”在下一场软件基础设施的重大升级里