当前位置:网站首页>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分钟边栏推荐
- MySQL(3)
- [Cartoon] 2021 full score programmer behavior comparison table (latest version)
- 金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续
- 科技赋能拉萨之“肺”,华为助力拉鲁湿地智慧管理守护绿水青山
- pytorch basic operations: classification tasks using neural networks
- postgres 多个变量填充字符串,字串格式化
- 人工神经网络
- 深入剖析成员变量和局部变量的初始化问题
- 路由规划中级篇
- Py's mlxtend: a detailed guide to the introduction, installation, and usage of the mlxtend library
猜你喜欢

HCIP BGP Comprehensive Experiment Establishing peers, route reflectors, federation, route announcement and aggregation

Double for loop case (use js jiujiu printing multiplication table)

MySQL联合查询(多表查询)

触发器简单解释

Nacos数据库配置

How the Internet of Things is changing the efficiency of city operations

有点奇怪!访问目的网址,主机能容器却不行

Nacos installation configuration and single-machine deployment tutorial

MySQL Advanced SQL Statements

MySQL Advanced SQL Statements (2)
随机推荐
Toolbox App 1.25 New Features at a Glance | Version Update
Different ways of shell scripting
DNS的解析流程
MySQL - 多表查询与案例详解
Thread Basics (1)
深入剖析成员变量和局部变量的初始化问题
推出 Space On-Premises (本地部署版) Beta 版!
有点奇怪!访问目的网址,主机能容器却不行
A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
How the Internet of Things is changing the efficiency of city operations
MySQL classic 50 practice questions and the most detailed analysis of the whole network
MySQL高阶---存储引擎、索引、锁
NPM ---- 安装yarn
nacos安装配置和单机部署教程
zabbix邮件报警和微信报警
人工神经网络
BGP experiment (route reflector, federation, route optimization)
npm 和 yarn的区别
蚂蚁三面:MQ 消息丢失、重复、积压问题,有哪些解决方案?
科技赋能拉萨之“肺”,华为助力拉鲁湿地智慧管理守护绿水青山