当前位置:网站首页>Similarities and differences of sessionstorage, localstorage and cookies
Similarities and differences of sessionstorage, localstorage and cookies
2022-07-03 13:55:00 【pzy_ six hundred and sixty-six】
type | Valid range of data | Storage size | Storage location |
---|---|---|---|
sessionStorage | It is valid when the current tab is not closed ( Be careful :chrome89 after , Under normal circumstances, multiple tabs cannot share data ) | Maximum 5M | Only stored on the client |
localStorage | Always working , Unless removed by hand | 5M | Only stored on the client |
Cookie | If the expiration time is not set , So as long as the browser is not closed , If the expiration time is set , Is valid before the expiration time | 4KB | Every request carries , If there is too much data stored , May cause performance problems |
Tool library to simplify operations
Related articles
Chrome to update 89 After version ,sessionStorage The loss of a Label jump lost sessionStorage
The tool library has been used for a long time , You can also operate natively Cookie Do you ?
【cookie】 Set up cookie Expiration time Timeout time ,Cookie Set up expires
Cookie Getting started to getting started (js-cookie plug-in unit )
边栏推荐
- Uniapp tips - scrolling components
- How to use lxml to judge whether the website announcement is updated
- MySQL data processing value addition, deletion and modification
- [技術發展-24]:現有物聯網通信技術特點
- Screenshot of the operation steps of upload labs level 4-level 9
- Unity render streaming communicates with unity through JS
- Father and basketball
- logback日志的整理
- Go 1.16.4: manage third-party libraries with Mod
- Qt学习25 布局管理器(四)
猜你喜欢
Mastering the cypress command line options is the basis for truly mastering cypress
Qt学习19 Qt 中的标准对话框(上)
Richview trvstyle liststyle list style (bullet number)
[redis] cache warm-up, cache avalanche and cache breakdown
交联环糊精金属有机骨架负载甲氨蝶呤缓释微粒|金属-有机多孔材料UiO-66负载黄酮苷类药物|齐岳
Installation impression notes
MySQL data processing value addition, deletion and modification
Rasp implementation of PHP
Implementation of Muduo asynchronous logging
UiO-66-COOH装载苯达莫司汀|羟基磷灰石( HA) 包裹MIL-53(Fe)纳米粒子|装载黄芩苷锰基金属有机骨架材料
随机推荐
Unity embeddedbrowser browser plug-in event communication
SQL Injection (POST/Select)
Thrift threadmanager and three monitors
Unable to stop it, domestic chips have made another breakthrough, and some links have reached 4nm
Leetcode-1175. Prime Arrangements
交联环糊精金属有机骨架负载甲氨蝶呤缓释微粒|金属-有机多孔材料UiO-66负载黄酮苷类药物|齐岳
Go language web development series 25: Gin framework: using MD5 to verify the signature for the interface station
核酸修饰的金属有机框架药物载体|PCN-223金属有机骨架包载Ad金刚烷|ZIF-8包裹阿霉素(DOX)
Unity render streaming communicates with unity through JS
When updating mysql, the condition is a query
如何使用lxml判断网站公告是否更新
SQL Injection (GET/Search)
[redis] cache warm-up, cache avalanche and cache breakdown
Unity Render Streaming通过Js与Unity自定义通讯
mysql中的字段问题
Implementation of Muduo asynchronous logging
Uniapp tips - scrolling components
Qt学习21 Qt 中的标准对话框(下)
[technology development-24]: characteristics of existing IOT communication technology
JS general form submission 1-onsubmit