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
Example Embodiment
[0018] Such as figure 1 As shown, the present invention adopts the following steps:
[0019] Step 1: Add Session monitoring to the Session management node in the configuration file, and create Session monitoring object nodes; such as:
[0020]
[0021]
[0022]
[0023]
[0024] Step 2: This creates a listener and implements the Session operation method. The listener implements the SessionListener interface. The operation methods mainly include: Session start, Session end, and Session expiration methods; 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] }
[0039] }
[0040] Step 3. ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap