当前位置:网站首页>request.getSession(),的故事
request.getSession(),的故事
2022-08-02 05:46:00 【金箍一梦何来愁】
1、request.getSession()可以帮你得到HttpSession类型的对象,通常称之为session对象,session对象的作用域为一次会话,通常浏览器不关闭,保存的值就不会消失,当然也会出现session超时。服务器里面可以设置session的超时时间,web.xml中有一个session time out的地方,tomcat默认为30分钟
2、项目里面
request.getSession().setAttribute("UserAuthority", sessionUser);,就是创建一个session有效期是30分钟边栏推荐
- 物联网如何改变城市运行效率
- Xgboost报错ValueError:无效的形状:标签(1650 2)
- pointer arithmetic in c language
- selenium + robotframework的运行原理
- npm、nrm两种方式查看源和切换镜像
- Node installation and environment variable configuration
- Point Density-Aware Voxels for LiDAR 3D Object Detection Paper Notes
- pl/sql之神奇的嵌套与变量生命周期
- Nacos installation detailed process
- 提交代码流程
猜你喜欢

MySQL(3)

APP special test: traffic test

MySQL联合查询(多表查询)

npm、nrm两种方式查看源和切换镜像

Analysis of the source code of the JS UI framework of Hongmeng system

Nacos安装详细过程

MySQL high-level --- storage engine, index, lock

MySQL 23 classic interviews hang the interviewer

ASP.NET Core Web API 幂等性

MySQL - Multi-table query and case detailed explanation
随机推荐
MySQL union query (multi-table query)
Reverse resolve dns server
蚂蚁三面:MQ 消息丢失、重复、积压问题,有哪些解决方案?
Nacos数据库配置
MarkDown Formula Instruction Manual
[OpenCV from entry to practice] image processing technology [pixel] (the most detailed in the whole network)
pl/sql之神奇的嵌套与变量生命周期
APP special test: traffic test
MySQL high-level statements (1)
NPM ---- 安装yarn
HCIP 第三天实验
leetcode-338.比特位计数
Double for loop case (use js jiujiu printing multiplication table)
MySQL高级学习笔记
love
Leetcode parentheses matching problem -- 32. The longest parentheses effectively
npm、cnpm的安装
Luogu mini game Daquan (everyone who uses Luogu must know)
node安装及环境配置
排雷小游戏(C语言)