在web.xml中设置session的过期时间

<!-- 设置Session的有效时间:以分钟为单位-->
    <session-config>
        <session-timeout>15</session-timeout>
    </session-config>

猜你喜欢

转载自blog.csdn.net/abc_123456___/article/details/88648313
今日推荐