Session的有效期可以在web.xml中修改。例如修改为60min:<session-config> <session-timeout>60</session-timeout> </session-config>