title: automatically redirect to login page after session timeout - JSP, Spring
body: <p>I can redirect a user to home page upon session logout.. this was very simple. However, if an user had logged into the app and had the page open, even on session time out, he is able to perform all the functions(this is bad). </p>
  
  <p>The redirect does not happen until the page is refreshed, or submitted to the server... there are some update functions that could be done by the user even if he is not currently logged in... I have done a lot of research but unable to fix this solution. I also found this thread but it seems to have no proper answer:</p>
  
  <p><a href="https://stackoverflow.com/questions/12729865/spring-security-3-1-automatically-redirect-to-login-page-when-session-timeout">Spring Security 3.1 - Automatically redirect to login page when session-timeout occurs</a></p>
  
  <p>For example, most of the banking sites log you out after a time out.. they do not wait until you come back and then submit a request before you are redirected to home page.</p>