Reputation: 790
A webapp that we support is written in JAVA using SpringMVC. We have an existing requirement that our application times-out after 60 minutes of user inactivity. To achieve this, we have a session-timeout entry in the applications web.xml file; until now, this worked just fine.
The problem is that now we have a new GUI component which needs to call home at regular intervals (60 seconds). This is basically acting as a keep-alive :( Due to browser versions that we have to support, we can't use websockets so we're just polling at regular intervals (I'm not sure if this is relevant).
Is there a way to configure our webapp to omit specific requests from triggering the session-timeout.
Upvotes: 1
Views: 1292
Reputation: 301
You can try session.setMaxInactiveInterval. This should override the default timeout.
Upvotes: -1