当前位置:网站首页>request.getSession(), the story
request.getSession(), the story
2022-08-02 07:12:00 【A dream of a golden hoop】
1. request.getSession() can help you get an object of HttpSession type, usually called a session object. The scope of a session object is a session. Usually, the saved value will not disappear if the browser is not closed. Of courseThere will also be a session timeout.The server can set the session timeout time. There is a session time out place in web.xml. The default value of tomcat is 30 minutes.
2. Inside the project
request.getSession().setAttribute("UserAuthority", sessionUser); is to create a session valid for 30 minutes边栏推荐
猜你喜欢

MySQL high-level statements (1)

能与观众实时互动的Claper

MySQL驱动jar包的下载--保姆教程

CAT1 4G+以太网开发板腾讯云手机微信小程序显示温度和下发控制

MySQL联合查询(多表查询)

MySQL Advanced - MVCC (ultra-detailed finishing)

MySQL Advanced Statements (1)

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

MySQL高级-MVCC(超详细整理)

SphereEx苗立尧:云原生架构下的Database Mesh研发实践
随机推荐
Nacos客户端启动出现9848端口错误分析(非版本升级问题)
C# FileInfo类
zabbix邮件报警和微信报警
Understand C operators in one article
The international top conference OSDI included Taobao system papers for the first time, and the device-cloud collaborative intelligence was recommended by the keynote speech of the conference
Not annotated parameter overrides @NonNullApi parameter
Xgboost报错 ValueError: Invalid shape: (1650, 2) for label
Node installation and configuration (node-v12.20.2-x64 ) and introduction to node version switching
request.getSession(),的故事
chrome 插件开发指南
能与观众实时互动的Claper
HCIP BGP Comprehensive Experiment Establishing peers, route reflectors, federation, route announcement and aggregation
MySQL Advanced SQL Statements
MySQL Advanced Study Notes
看图就懂|衡量业务增长健康的销售指标如何选择
触发器简单解释
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
nacos源码启动找不到istio包
股价屡创新低 地产SaaS巨头陷入困境 明源云该如何转型自救?
MySql 5.7.38 download and installation tutorial, and realize the operation of MySql in Navicat