当前位置:网站首页>The difference between cookie and session
The difference between cookie and session
2022-04-23 05:46:00 【DK_ ten thousand and thirty-two】
Learning goals :
master cookie and session The difference between
Learning content :
1.Cookie The data is saved on the client side ,Session Data is saved on the server side .
2.Session yes The storage space of a server maintained by the server , When the user connects to the server , The server will generate a unique SessionID. Use this SessionID Access the server-side... For the identifier Session Storage space . and SessionID This data is saved to the client , use Cookie The saved . This process , Without developer intervention , So once the client is disabled Cookie, that Session It's going to fail .
3.Cookie It belongs to Session A kind of object . But it's different .Cookie Will not occupy server resources , Is there client memory or Cookie In the text file . and Session It will occupy the server resources . therefore , Try not to use Session, While using Cookies.
however Cookie Full visibility of information and ease of local editing , It often causes a lot of security problems .
Session It's reliable , But at present, many famous sites also use Cookie.
版权声明
本文为[DK_ ten thousand and thirty-two]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220534094005.html
边栏推荐
- Use of qwbengneview and qwebchannel.
- jdbc入门\获取数据库连接\使用PreparedStatement
- solidity合约DOS攻击
- Typescript interface & type rough understanding
- Object to map
- mysql-触发器、存储过程、存储函数
- Radar equipment (greedy)
- io.lettuce.core.RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
- qt. qpa. plugin: Could not find the Qt platform plugin “xcb“ in ““
- Frequently asked interview questions - 2 (computer network)
猜你喜欢
SQL语句简单优化
SQL statement simple optimization
转置卷积(Transposed Convolution)
Getting started with JDBC \ getting a database connection \ using Preparedstatement
多线程与高并发(1)——线程的基本知识(实现,常用方法,状态)
mysql sql优化之Explain
Deep learning object detection
‘EddiesObservations‘ object has no attribute ‘filled‘
Parameter analysis of open3d material setting
deep learning object detection
随机推荐
Sword finger offer II 022 The entry node of the link in the linked list
Duplicate key update in MySQL
Redis经典面试题总结2022
Add days to date
refused connection
MySQL创建oracle练习表
数据安全入门产品——数据库审计系统详解
转置卷积(Transposed Convolution)
Shell instruction learning 1
mysql中duplicate key update
Xiuxian real world and game world
热键,界面可视化配置(界面交互)
OSI层常用协议
Flutter 新一代图形渲染器 Impeller
Insert picture in freemark
Strategies to improve Facebook's touch rate and interaction rate | intelligent customer service helps you grasp users' hearts
Excel obtains the difference data of two columns of data
【华为机试】考试得分总数(如何处理答错的情况?回溯一次,代表答错一题)
STL learning notes 0x0001 (container classification)
Golang implements Ping connectivity detection case through exec module