Invalidates the session, thereby removing the authentication token, and redirects to the login page. HttpSession session = request.getSession(); session.invalidate(); response.sendRedirect("login.jsp");
HttpSession session = request.getSession(); session.invalidate(); response.sendRedirect("login.jsp");