当前位置:网站首页>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
边栏推荐
- QT drawpixmap and DrawImage blur problem
- io. lettuce. core. RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
- Flutter nouvelle génération de rendu graphique Impeller
- acwing854. Floyd finds the shortest path
- io.lettuce.core.RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
- opensips(1)——安装opensips详细流程
- ‘EddiesObservations‘ object has no attribute ‘filled‘
- Insert picture in freemark
- MySQL的锁机制
- Split and merge multiple one-dimensional arrays into two-dimensional arrays
猜你喜欢

Getting started with JDBC \ getting a database connection \ using Preparedstatement

3d slicer中拉直体的生成

Use of qwbengneview and qwebchannel.

After adding qmenu to qtoolbutton and QPushButton, remove the triangle icon in the lower right corner

Isosceles triangle - the 9th Lanqiao provincial competition - group C

STL learning notes 0x0001 (container classification)

C, class library

多线程与高并发(3)——synchronized原理

deep learning object detection

Pytorch deep learning practice_ 11 convolutional neural network
随机推荐
Excel obtains the difference data of two columns of data
ES6之解构函数
POI generates excel and inserts pictures
2 - software design principles
Frequently asked interview questions - 1 (non technical)
尚硅谷 p290 多态性练习
Typescript interface & type rough understanding
World and personal development
引航成长·匠心赋能——YonMaster开发者培训领航计划全面开启
jdbc入门\获取数据库连接\使用PreparedStatement
多个一维数组拆分合并为二维数组
Solid contract DoS attack
Sea Level Anomaly 和 Sea Surface Height Anomaly 的区别
C language - Spoof shutdown applet
Contract lock loophole
STD:: String implements split
catkin_package到底干了什么
The 8th Blue Bridge Cup 2017 - frog jumping cup
Isosceles triangle - the 9th Lanqiao provincial competition - group C
Common protocols of OSI layer