HttpSession hs = request.getSession();
//以键值对方式存储数据在session中
hs.setAttribute("code", code);
//设置这个session生存周期为30分钟,单位是秒
hs.setMaxInactiveInterval(30*60);
session的一些笔记
猜你喜欢
转载自www.cnblogs.com/c2g5201314/p/10526297.html
今日推荐
周排行