#登出代码
public void loginOut(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
//设置提示语句
//request.getSession().setAttribute("msg", "退出成功!即将跳转首页");
//跳转提示页面
// request.getRequestDispatcher("/msg.jsp").forward(request, response);;
//销毁session对象
request.getSession().invalidate();
//重定向到首页
response.sendRedirect("main.jsp");
}