色色死你的生命周期可以在web.xml中通过配置的方式管理,也可通过方法管理 1.配置 <session-config> <session-timeout>40</session-timeout> </session-config> 2.方法设置 session.setMaxInactiveInterval(long time)