Commit 2410790a authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

dropping sessionListener

parent 7491a41f
......@@ -52,6 +52,8 @@ public class AuthenticationSuccessHandlerImpl implements AuthenticationSuccessHa
logger.debug(
"User " + authentication.getName() + " successfully logged in using " + method + " authentication method");
request.getSession().setMaxInactiveInterval(Configuration.getSessionLength());
Map<String, Object> result = new TreeMap<>();
result.put("info", "Login successful.");
result.put("token", request.getSession().getId());
......
package lcsb.mapviewer.web.config;
import lcsb.mapviewer.common.Configuration;
import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
@WebListener
public class SessionListener implements HttpSessionListener {
@Override
public void sessionCreated(HttpSessionEvent se) {
se.getSession().setMaxInactiveInterval(Configuration.getSessionLength());
}
@Override
public void sessionDestroyed(HttpSessionEvent se) {
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment