java session timeout

Solutions on MaxInterview for java session timeout by the best coders in the world

showing results for - "java session timeout"
Marvin
25 Jul 2017
1Setting session timeout globaly. It can be done by implementing ServletContextListener
2@Override
3public void contextInitialized(ServletContextEvent servletContextEvent) {      
4    servletContextEvent.getServletContext().setSessionTimeout(timeinminutes);
5}
6
7For specific User we can get the session from Request (HttpServletRequest) 
8e.g request.getSession().setMaxInactiveInterval(timeinsecond);
queries leading to this page
java session timeoutjava session timeout