当前位置:网站首页>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();
边栏推荐
- Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
- Yiwen takes you to know ZigBee
- Classes and objects - initialization and cleanup of objects - constructor call rules
- Segmentation fault occurs during VFORK execution
- Introduction to cron expression
- [shutter] banner carousel component (shutter_wiper plug-in | swiper component)
- docker安装mysql
- Tensorflow to pytorch notes; tf. gather_ Nd (x, y) to pytorch
- 从C到Capable-----利用指针作为函数参数求字符串是否为回文字符
- Are there any recommended term life insurance products? I want to buy a term life insurance.
猜你喜欢

Super easy to use logzero

HW initial preparation

The process of connecting MySQL with docker
![[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](/img/c3/b9a614001f80345a5c1cb3c68ab27c.jpg)
[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

Build a private cloud disk cloudrev

Pytest (6) -fixture (Firmware)

迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常

Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution
![[principles of multithreading and high concurrency: 1_cpu multi-level cache model]](/img/c7/6b5ab4ff7379bfccff7cdbb358ff8f.jpg)
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]

From C to capable -- use the pointer as a function parameter to find out whether the string is a palindrome character
随机推荐
docker安装redis
Sqlserver row to column pivot
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
docker安装mysql
Source code analysis | layout file loading process
Concrete CMS vulnerability
How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
I2C subsystem (II): I3C spec
Random shuffle note
Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey 论文阅读笔记
[fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
xiaodi-笔记
[Fuhan 6630 encodes and stores videos, and uses RTSP server and timestamp synchronization to realize VLC viewing videos]
Kubernetes family container housekeeper pod online Q & A?
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
I2C subsystem (III): I2C driver
ComponentScan和ComponentScans的区别
TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
Xiaodi notes
C语言初阶-指针详解-庖丁解牛篇