摘要:
1 //cookie保存路径 2 String autologin=request.getParameter("autologin"); 3 String path = request.getContextPath()+"/"; 4 if(autologin!=null&&autologin.equals("on")){ ... 阅读全文
摘要:
request.getSession().setMaxInactiveInterval(-1);//session不失效 request.getSession().setMaxInactiveInterval(60*60*5);//session有效期60秒*60分*5小时 阅读全文