当前位置:网站首页>Destroy the session and empty the specified attributes
Destroy the session and empty the specified attributes
2022-07-03 02:57:00 【A stream kite CD】
The destruction session:
session.invalidate()Clear current session All the information about
Empty session Specified properties in :session.removeAttribute()Applicable to clearing the specified attribute , Specified in parentheses session Properties of .
Empty session:Session.Clear()Is to put Session All items in the object have been deleted ,Session There's nothing in the object . however Session The object remains .
session Of removeAttribute() and invalidate() The difference between
session.invalidate() Destroy the association with the user session, For example, some users force the browser to close , And tracking users' information session There is still , But the user has left .
although session Lifecycle browse default time 30 branch , But in 30 Within minutes, other users can also access the previous user's page , It is necessary to destroy the user's session.
session.removeAttribute() remove session An attribute in .
stay spring In the example, the login code of the pet store :
request.getSession().removeAttribute(“userSession”);
// Log off users , send session invalid .
request.getSession().invalidate();
边栏推荐
- sql server 查詢指定錶的錶結構
- vfork执行时出现Segmentation fault
- 力扣------网格中的最小路径代价
- Variable declarations following if statements
- Sqlserver row to column pivot
- Source code analysis | layout file loading process
- HW initial preparation
- [shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling
- A2L file parsing based on CAN bus (2)
- Pytest (6) -fixture (Firmware)
猜你喜欢
![ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc](/img/cb/145937a27ef08050a370d5a255215a.jpg)
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc

Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)

I2C subsystem (I): I2C spec
![[translation] modern application load balancing with centralized control plane](/img/b0/22e9bf098d580b2af67255ddcdc0d5.jpg)
[translation] modern application load balancing with centralized control plane

The process of connecting MySQL with docker
![[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)](/img/e5/c01f760b07b495f5b048ea367e0c21.gif)
[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)

HW-初始准备

SQL statement

sql server数据库添加 mdf数据库文件,遇到的报错

I2C 子系统(三):I2C Driver
随机推荐
Practice of traffic recording and playback in vivo
Your family must be very poor if you fight like this!
ComponentScan和ComponentScans的区别
Counter统计数量后,如何返回有序的key
TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
Installation and use of memory leak tool VLD
疫情当头,作为Leader如何进行代码版本和需求开发管控?| 社区征文
sql server 查詢指定錶的錶結構
I2C subsystem (II): I3C spec
【富瀚6630编码存录像,用rtsp服务器及时间戳同步实现vlc观看录像】
Wechat - developed by wechat official account Net core access
Informatics Olympiad one general question bank 1006 a+b questions
当lambda没有输入时,是何含义?
【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
TCP handshake three times and wave four times. Why does TCP need handshake three times and wave four times? TCP connection establishes a failure processing mechanism
Matlab tips (24) RBF, GRNN, PNN neural network
Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
sql server数据库添加 mdf数据库文件,遇到的报错
HTB-Devel
[leectode 2022.2.15] lucky numbers in the matrix