Lasitha Benaragama
Lasitha Benaragama

Reputation: 2209

Session is not Expired in Vaadin

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

Answers (1)

Roland Krüger
Roland Krüger

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

Related Questions