Java – listener for session expiration in spring
•
Java
I am new to spring and use it for authentication One problem I face is that when the browser closes or encounters any abnormal failure, the session expires, but I can't catch events to execute cleanup code
Request the same solution
Solution
Maybe sessionmanagementfilter can help?
Alternatively, you can configure spring security to automatically redirect users when timeouts occur: the detecting timeouts section
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码