How to configure my (built-in) Tomcat session timeout in a Spring boot application?
public class SessionListener implements HttpSessionListener{ @Override public void sessionCreated(HttpSessionEvent se) { se.getSession().setMaxInactiveInterval(5*60); } @Override public void sessionDestroyed(HttpSessionEvent se) { }}
I have a SessionListener, but I have no idea in which class I should add this listener to the context.
source share