title: Spring Security: Redirect to invalid-session-url instead of logout-success-url on successful logout
body: <p>I have implemented a login-logout system with Spring Security 3.0.2, everything is fine but for this one thing: after I added a session-management tag with invalid-session-url attribute, on logout Spring would always redirect me on the invalid-session-url instead of the logout-success-url (which it correctly did before).</p>
  
  <p>Is there a way to avoid this behaviour?</p>
  
  <p>This is my configuration:</p>
  
  <pre><code>&lt;http use-expressions="true" auto-config="true"&gt;
          [...some intercept-url's...]
  
      &lt;form-login login-page="/login" authentication-failure-url="/login?error=true"
              login-processing-url="/login-submit" default-target-url="/home"
              always-use-default-target="true" /&gt;
  
      &lt;logout logout-success-url="/home?logout=true" logout-url="/login-logout" /&gt;
  
      &lt;session-management invalid-session-url="/home?invalid=true" /&gt;
  &lt;/http&gt;
  </code></pre>
  
  <p>Thanks a lot.</p>