HttpSession session = request.getSession();goodst s = session.getMaxInactiveInterval("s1");s.count=??session.setAttribute("s1", s);先获取对象,改掉值后重新添加进去.