session有效时间

request.getSession().setMaxInactiveInterval(-1);//session不失效

request.getSession().setMaxInactiveInterval(60*60*5);//session有效期60秒*60分*5小时

posted @ 2016-07-27 11:43  flay  阅读(364)  评论(0编辑  收藏  举报