当前位置:网站首页>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
边栏推荐
- Duplicate key update in MySQL
- TypeScript interface & type 粗略理解
- The QT debug version runs normally and the release version runs crash
- Object to map
- MySQL create Oracle exercise table
- QSslSocket::connectToHostEncrypted: TLS initialization failed
- Reading notes of modern methods of C language programming
- Data mining -- understanding data
- Typescript interface & type rough understanding
- ‘EddiesObservations‘ object has no attribute ‘filled‘
猜你喜欢
opensips(1)——安装opensips详细流程
C, class library
QSS, qdateedit, qcalendarwidget custom settings
jdbc入门\获取数据库连接\使用PreparedStatement
Use of qwbengneview and qwebchannel.
Establish excel bookkeeping book through setting context menu
open3d材质设置参数分析
Breadth first search topics (BFS)
Flutter 新一代图形渲染器 Impeller
手动删除eureka上已经注册的服务
随机推荐
实体中list属性为空或者null,设置为空数组
橙单微服务之批量导入
jdbc入门\获取数据库连接\使用PreparedStatement
Flutter 新一代圖形渲染器 Impeller
尚硅谷 p290 多态性练习
CMake基础教程(39)pkgconfig
多线程与高并发(1)——线程的基本知识(实现,常用方法,状态)
MySQL create Oracle exercise table
Generation of straightening body in 3D slicer
Cross platform packaging of QT packaging program
College entrance examination volunteer filling reference
Getting started with JDBC \ getting a database connection \ using Preparedstatement
XXL job pit guide XXL RPC remoting error (connect timed out)
deep learning object detection
Differences between auto and decltype inference methods (learning notes)
poi生成excel,插入图片
Cmake basic tutorial (39) pkgconfig
Strategies to improve Facebook's touch rate and interaction rate | intelligent customer service helps you grasp users' hearts
【华为机试】考试得分总数(如何处理答错的情况?回溯一次,代表答错一题)
open3d材质设置参数分析