title: Spring Security: How do I reset SPRING_SECURITY_LAST_EXCEPTION.message?
body: <p>I am able to display the <code>SPRING_SECURITY_LAST_EXCEPTION.message</code> ("Bad Credentials") when a user tries to log in with incorrect credentials.</p>
  
  <p>My login jsp currently uses the following code:</p>
  
  <pre><code>&lt;c:if test="${not empty SPRING_SECURITY_LAST_EXCEPTION.message}"&gt;
      &lt;c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" /&gt;
  &lt;/c:if&gt;
  </code></pre>
  
  <p>My problem is that the <strong>"Bad Credentials"</strong> message is still there when the user navigates away from the login page and then comes back.</p>
  
  <p>How can I reset <code>SPRING_SECURITY_LAST_EXCEPTION.message</code> when a user refreshes the login page?</p>