Method for solving problem of invalid logout of system based on Shiro framework and integrated with Redis
A technology of framework and operation method, applied in the field of system platform based on Shiro framework, can solve problems such as invalid system logout
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0018] Such as figure 1 Shown, the present invention adopts following steps:
[0019] Step 1. Add Session monitoring in the Session management node in the configuration file, and create a Session monitoring object node; for example:
[0020]
[0021]
[0022]
[0023]
[0024] Step 2, the listener is created and the Session operation method is implemented. The listener implements the SessionListener interface. The operation method mainly includes: Session start, Session end, and Session expiration; such as:
[0025] public class ShiroSessionListener implements SessionListener {
[0026] @Autowired
[0027] private RedisSessionDAO redisSessionDAO;
[0028] @Override
[0029] public void onStart(Session Session) {
[0030]}
[0031] @Override
[0032] public void onStop(Session Session) {
[0033] redisSessionDAO.delete(Session);
[0034]}
[0035] @Override
[0036] public void onExpiration(Session Session) {
[0037] redisSessionDAO.delete(Session);
[0038...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com

