web开发中遇到的小问题
(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";
}

浙公网安备 33010602011771号