HttpSession sessions = request.getSession(false);//防止创建Session if(sessions == null){ response.sendRedirect("/dome/login.jsp"); return; } session.removeAttribute("name"); response.sendRedirect("/dome/login.jsp");
HttpSession sessions = request.getSession(false);//防止创建Session if(sessions == null){ response.sendRedirect("/dome/login.jsp"); return; } session.removeAttribute("name"); response.sendRedirect("/dome/login.jsp");