You can use the getMaxInactiveInterval() and setMaxInactiveInterval(int interval) methods of javax.servlet.http.HttpSession. An example is: request.getSession().getMaxInactiveInterval() Hope that helps, Faisal