当前位置:网站首页>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 )
边栏推荐
- JS general form submission 1-onsubmit
- [556. Next larger element III]
- [redis] cache warm-up, cache avalanche and cache breakdown
- Logback log sorting
- 如何使用lxml判断网站公告是否更新
- Unity embeddedbrowser browser plug-in event communication
- Static linked list (subscript of array instead of pointer)
- Failure of vector insertion element iterator in STL
- [combinatorics] permutation and combination (examples of combinatorial number of multiple sets | three counting models | selection problem | combinatorial problem of multiple sets | nonnegative intege
- How to use lxml to judge whether the website announcement is updated
猜你喜欢

Rasp implementation of PHP

双向链表(我们只需要关注插入和删除函数)

Use and design of Muduo buffer class

RichView TRVStyle ListStyle 列表样式(项目符号编号)

SQL Injection (AJAX/JSON/jQuery)

Flutter dynamic | fair 2.5.0 new version features

全面发展数字经济主航道 和数集团积极推动UTONMOS数藏市场

Flutter dynamic | fair 2.5.0 new version features

核酸修饰的金属有机框架药物载体|PCN-223金属有机骨架包载Ad金刚烷|ZIF-8包裹阿霉素(DOX)

挡不住了,国产芯片再度突进,部分环节已进到4nm
随机推荐
Comprehensively develop the main channel of digital economy and digital group, and actively promote the utonmos digital Tibet market
GoLand 2021.1.1: configure the multi line display of the tab of the open file
Bidirectional linked list (we only need to pay attention to insert and delete functions)
Installation impression notes
Golang — 命令行工具cobra
Leetcode-1175. Prime Arrangements
Qt学习19 Qt 中的标准对话框(上)
Failure of vector insertion element iterator in STL
RichView TRVStyle ListStyle 列表样式(项目符号编号)
logback日志的整理
Halcon combined with C # to detect surface defects -- Halcon routine autobahn
Qt学习21 Qt 中的标准对话框(下)
SQL Injection (GET/Search)
Replace the GPU card number when pytorch loads the historical model, map_ Location settings
SQL Injection (POST/Select)
Students who do not understand the code can also send their own token, which is easy to learn BSC
SQL Injection (AJAX/JSON/jQuery)
Uniapp skills - scrolling components -1
Go language web development series 29: Gin framework uses gin contrib / sessions library to manage sessions (based on cookies)
Unity embeddedbrowser browser plug-in event communication