Vaadin and Spring: Replace "Session Expired" message with auto reload

Hi there,
I want to replace the “Session Expired” message in my Vaadin + Spring application with an auto reload of the page, so that no user interaction is needed.
Do you know how to achieve that?

Best regards,

I think you should be able to do this by setting a custom SystemMessagesProvider or alternatively adding a SessionDestroyListener and navigating the user from there.

thank you for the answear. But how can I Override the sessionDestroy method in a spring application?