Reputation: 2209
Im in the Middle of Developing WebApplication Using Vaadin and Spring. I Used AbstractJavaScriptComponent and Using setInterval() im getting data from the backend and display the data Real Time.
My Question is The Requests are act as User Request Request and Session is not timeout because Vaadin Received it as User Interaction.
Is there anyway to ignore the javascript Connection and activate session timeout according to Users UI Interactions.
Upvotes: 1
Views: 406
Reputation: 904
I'm not sure if this will help you in your specific case, but you can set a servlet parameter named closeIdleSessions
in your web.xml like so:
<init-param>
<param-name>closeIdleSessions</param-name>
<param-value>true</param-value>
</init-param>
This will timeout user sessions which are only kept alive by UI heartbeat events. It's worth a try at least.
Upvotes: 1