title: Spring Security 3.1 redirect after logout
body: <p>I was reading many tutorials and none of them is working for me...
  I use Spring 3.1.x  with Spring Security. I have a bunch of secured url and many unsecured. Now, when the user is logged in and tries to logout I want him to stay in the same page as he was before so I use this:</p>
  
  <pre><code>&lt;beans:bean id="logoutSuccessHandler" class="org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler"&gt;
      &lt;beans:property name="useReferer" value="true"/&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>This works fine, however when the user logs out from the secured page it redirects him to the login page, and I would like to redirect to home page.. How can I achieve this?
  Thanks in advance!</p>