摘要: 1 //cookie保存路径 2 String autologin=request.getParameter("autologin"); 3 String path = request.getContextPath()+"/"; 4 if(autologin!=null&&autologin.equals("on")){ ... 阅读全文
posted @ 2016-07-27 11:51 flay 阅读(313) 评论(0) 推荐(0) 编辑
摘要: request.getSession().setMaxInactiveInterval(-1);//session不失效 request.getSession().setMaxInactiveInterval(60*60*5);//session有效期60秒*60分*5小时 阅读全文
posted @ 2016-07-27 11:43 flay 阅读(366) 评论(0) 推荐(0) 编辑