Is there a way to handle the restore of sessions from the session store of Spring Session (Redis, MongoDB or anything else)? How I understand such restoration happened every time I restart the application which is using Spring Session with session storage turned on.
I already tried an approach with SessionRegistry from here and it does not work for me How can I have list of all users logged in (via spring security) my web application
I guess HttpSessionListener don't handle the session restore.
Also, I tried another listener but also without success
@Bean
public HttpSessionActivationListener sessionRestoreListener() {
return new HttpSessionActivationListener() {
@Override
public void sessionWillPassivate(HttpSessionEvent se) {
logger.info("HTTP Session {} passivated", se.getSession().getId());
}
@Override
public void sessionDidActivate(HttpSessionEvent se) {
logger.info("HTTP Session {} activated", se.getSession().getId());
}
};
}
Is that possible at all to handle session restore in Spring Session?