dplesa dplesa - 1 month ago 20
Java Question

Spring and session timeout on JBoss

I want to setup session timeout to 15 minutes. I set

server.session.timeout
to
900
and it works when I run the app in the provided Tomcat. However, when I deploy the application on the JBoss session timeout doesn't occur after 15 minutes. How can I achieve this?

Answer

In spring boot server.session.timeout is in minutes not seconds.

In your web.xml, number is in minutes.

<web-app ...>
    <session-config>
        <session-timeout>20</session-timeout>
    </session-config>
</web-app>
Comments