I have set the session timeout to 20 minutes by adding the following line to my application.properties
file:
server.servlet.session.cookie.max-age=20m
The problem is that my application is a single page application. So even if I use it I never change page and the timeout is never reset. Therefore after 20 minutes I am logged out. I can I tell Spring to reset the timeout after each REST request?