当前位置:网站首页>Cookie, sessionstorage, localstorage differences
Cookie, sessionstorage, localstorage differences
2022-06-27 01:30:00 【Big drumsticks are best】
1, Data validity
cookies Is valid before its set expiration time
localstorage The data in it will remain valid unless it is deleted
sessionstorage When the browser or page closes, the data is destroyed
2, The size of the storage
cookie The size of is limited to 4KB
storage Than cookies Much more , Generally speaking, there are 5M
3, Access restrictions
cookies and localstorage You can access... In all windows of the browser
sessionstorage Can only be accessed in the same window of the same source
4, Communicate with the server
Cookie, Every time I carry it in HTTP In the head , and storage Not automatically sent to the server
边栏推荐
- Keepalived 实现 Redis AutoFailover (RedisHA)11
- Pointer compression for JVM
- idea 插件开发一些异常处理
- 史上最难618,TCL夺得电视行业京东和天猫份额双第一
- XSS笔记(下)
- Keepalived 实现 Redis AutoFailover (RedisHA)15
- 在连接数据库的时候遇到了点问题,请问怎么解决呀?
- Memcached foundation 5
- Weibo comments on high performance and high availability architecture
- 3 - wire SPI Screen Drive
猜你喜欢

接口测试框架实战(一) | Requests 与接口请求构造

Clip: learning transferable visual models from natural language monitoring

JVM 的指针压缩

Systematic analysis of social networks using Networkx: Facebook network analysis case

JSON parsing, esp32 easy access to time, temperature and weather

Gaussian and Summary Stats

Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk

架构实战营模块五作业

Structure the fifth operation of the actual camp module

Bs-gx-016 implementation of textbook management system based on SSM
随机推荐
memcached基础2
XSS attack notes (Part 1)
可视化介绍 Matplotlib 和 Plotnine
清华&智源 | CogView2:更快更好的文本图像生成模型
1.44寸TFT-LCD显示屏取模教程
buuctf-pwn write-ups (6)
Central Limit Theorem
C#程序结构预览最基础入门
memcached基础6
递归是会更秀strtok
get_sequencer的用法总结
Interface test framework practice (I) | requests and interface request construction
Markdown table (consolidated)
Gaussian and Summary Stats
About Random Numbers
idea 插件开发一些异常处理
UVM中uvm_config_db非直线的设置与获取
Structure the fifth operation of the actual camp module
Visual introduction to Matplotlib and plotnine
George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning