当前位置:网站首页>Cookies and sessions
Cookies and sessions
2022-06-12 07:55:00 【Watermelon 77】
Cookie
Cookie Is a session management technology , It is used to save the data generated during the session , Then when the browser interacts with the server ,
Will use cookie The data stored in it .
After starting 
Session object
session Is a session management technology ,session Used to save data during the session , The saved data is stored on the server side .
session Common methods :
1. obtain session Of id(JESSIONID Corresponding value ): getId();
2. Set up session Life span of :setMaxInactiveInterval(int interval)
3. The destruction session: invalidate();
obtain session: HttpSession session = getSession();
session Domain object : Scope a full session ( Contains multiple requests )
1. Store value : setAttribute(String key,Object obj);
2. Value : Object obj =getAttribute(String key);
3. remove : removeAttribute(String key);
边栏推荐
- 2D visualization of oil storage, transportation and production, configuration application enables intelligent development of industry
- Introduction to coco dataset
- . net mysql Too many connections
- 20220524 backbone deep learning network framework
- Leetcode notes: Weekly contest 295
- Vs 2019 MFC connects and accesses access database class library encapsulation through ace engine
- Generalized semantic recognition based on semantic similarity
- 20220526 loss function
- Web page performance optimization interview questions
- Leetcode notes: Weekly contest 296
猜你喜欢

Improvement of hash function based on life game (continued 2)

最新hbuilderX编辑uni-app项目运行于夜神模拟器

20220526 yolov1-v5

Topic 1 Single_ Cell_ analysis(1)

Topic 1 Single_ Cell_ analysis(4)

Summary of semantic segmentation learning (I) -- basic concepts

Mathematical knowledge - derivation - Basic derivation knowledge

Utilize user behavior data

Exposure compensation, white increase and black decrease theory

"Three.js" auxiliary coordinate axis
随机推荐
Some summaries of mathematical modeling competition in 2022
Conda创建虚拟环境报错,问题解决
Scoring prediction problem
Search and rescue strategy of underwater robot (FISH)
Chapter 2 - cyber threats and attacks
Chapter V - message authentication and digital signature
Improvement of hash function based on life game (continued 2)
R语言glm函数构建泊松回归模型(possion)、epiDisplay包的poisgof函数对拟合的泊松回归模型进行拟合优度检验、即模型拟合的效果、验证模型是否有过度离散overdispersion
Process terminated
Literature reading: deep neural networks for YouTube recommendations
Mathematical knowledge - derivation - Basic derivation knowledge
Fundamentals of Mathematics - Taylor Theorem
Voice assistant - Introduction and interaction process
Compiling principle on computer -- functional drawing language (IV): semantic analyzer
Voice assistant -- Qu -- query error correction and rewriting
Voice assistant -- vertical class perpetual motion machine -- automated iteration framework
The project file contains toolsversion= "14.0". This toolset may be unknown or missing workarounds
2D visualization of oil storage, transportation and production, configuration application enables intelligent development of industry
Generalized semantic recognition based on semantic similarity
Chapter 4 - key management and distribution