response.getWriter().println("<p>Session creation time: " + request.getSession().getCreationTime() + "</p>"); response.getWriter().println("<p>Session last accessed time: " + request.getSession().getLastAccessedTime() + "</p>"); response.getWriter().println("<p>Session max inactive interval in seconds: " + request.getSession().getMaxInactiveInterval() + "</p>");