当前位置:网站首页>Write cookies, sessionstorage, localstorage and session at will
Write cookies, sessionstorage, localstorage and session at will
2022-07-24 06:36:00 【LuciferDawnC】
cookie:
- It can be set at the back end or at the front end
- By default, it is valid before the browser is closed , You can set the expiration time
- According to the back-end requirements, it will be in ajax By default, the request header of carries the delivery , There is no need to set too many front-end
- Size limit 4KB.
sessionStorage:
- Pure front-end settings
- “ This session ” It is valid inside and cannot be stored for a long time
- With or without ajax Request delivery 、 How to deliver 、 What is passed is controlled by the front end
- Storage size 5M.
localStorage
- Pure front-end settings
- Long term effectiveness , Users may not pass js Cleanup will always exist
- With or without ajax Request delivery 、 How to deliver 、 What is passed is controlled by the front end
- Storage size 5M.
The attention of the above three stored in the client has the same source protection strategy ~(
emm Homology protection strategy is a kind of security behavior of browser , It is to prevent different sites from illegally obtaining the data stored by users Leakage of verification information .
http://localhost:8888 Take this as an example
http:// It's the name of the agreement
localhost This part is domain name The corresponding is www.xxxx.com This part
:8888 It's the port number
If there are different parts of the above three, it will be considered that they are not the same site and cannot obtain the data stored in other sites . Not much writing Write another one when you have time .
)
session
- Pure backend cache , Not in the front
- The validity period is controlled by the back end
- What the programmer sets himself Controllability Use restrictions are controlled by your own settings . Not much introduction
边栏推荐
- object-oriented
- [222] memory overflow and location
- United Nations agricultural products data analysis
- Solutions to the failure of wechat TBS online kernel installation
- Metersphere one stop open source continuous testing platform
- Flink state use
- Li Kou 986. Intersection of interval lists
- Difference between PX and EM and REM
- Transition effect
- 目录和文件管理
猜你喜欢
![[301] grotesque behavior - predictable irrationality](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[301] grotesque behavior - predictable irrationality

Ia class summary (1)

DNS域名解析服务

Website B video is embedded in the web page, and relevant controls are hidden

Custom MVC 2.0

系统安全及应用

Use and principle of spark broadcast variable and accumulator

Jenkins automated unattended operation (up / down)

Tensorflow GPU installation -- 056

go语言常用命令和包管理
随机推荐
自定义zabbix agent rpm包
Do not rent servers, build your own personal business website (4)
Crud of MySQL
CentOS operating system security reinforcement
磁盘管理和文件系统
【218】CS架构和BS架构以及数据放在服务端和客户端的利与弊?
LVM与磁盘配额
Customize MVC 3.0
RAID5和LVM组合使用
JSP tag
微信TBS在线安装内核失败的解决方法
How to build a website full of ritual sense and publish it on the public website 1-2
Sed command
[test tool]
Difference between PX and EM and REM
openssl版本升级
Flex layout
[award issuance] the results of the first essay solicitation activity in oneos zone were announced
[251] common test tools
【217】#!/usr/bin/env 的意义