标签:
(1)退出登陆:
private void LoginOut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession(false);//防止创建Session
if(session == null){
path = "WEB-INF/user/admin_login.jsp";
return;
}
session.removeAttribute("username");
path = "index.jsp";
}
标签:
原文地址:http://www.cnblogs.com/isqueen/p/5109377.html