title: Redirect to login page after session timeout or restarted application
body: <p>I have a spring-boot application, with front of single page application using java script and react.
  <br>
  When the app is upload I have a login page.
  <br>
  In uploading i redirect the app to the login page by using spring security.
  <br>
  Now I am trying to redirect my app to the login page if my session timeout or if I restarted my spring-boot-application.</p>
  
  <p>Do you have any insights to a simple way to implement this? </p>