mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-05-24 02:42:02 +00:00
Update CustomHttpSessionListener.java
This commit is contained in:
parent
423013f032
commit
aaa3739856
@ -42,6 +42,7 @@ public class CustomHttpSessionListener implements HttpSessionListener {
|
|||||||
}
|
}
|
||||||
String principalName = UserUtils.getUsernameFromPrincipal(principal);
|
String principalName = UserUtils.getUsernameFromPrincipal(principal);
|
||||||
if (principalName == null || "anonymousUser".equals(principalName)) {
|
if (principalName == null || "anonymousUser".equals(principalName)) {
|
||||||
|
log.info("Principal is null or anonymousUser");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
log.info("Session created: {}", principalName);
|
log.info("Session created: {}", principalName);
|
||||||
@ -51,5 +52,6 @@ public class CustomHttpSessionListener implements HttpSessionListener {
|
|||||||
@Override
|
@Override
|
||||||
public void sessionDestroyed(HttpSessionEvent se) {
|
public void sessionDestroyed(HttpSessionEvent se) {
|
||||||
sessionPersistentRegistry.expireSession(se.getSession().getId());
|
sessionPersistentRegistry.expireSession(se.getSession().getId());
|
||||||
|
sessionPersistentRegistry.removeSessionInformation(se.getSession().getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user