title: How to perform logout programmatically in spring 3
body: <p>I have a spring configuration for logout like follows:</p>
  
  <pre><code>&lt;logout logout-url="/abc/logout"
              logout-success-url="/abc/login"/&gt;
  </code></pre>
  
  <p>Now I want to do programmatically logout. How I can achieve this in Spring 3. I need to do logout from one of my controller which has the following def. and currently I am doing something like following...Is this a good idea..</p>
  
  <pre><code> public void suppressUserProfile() {
     //...
     return "redirect:/abc/logout"; 
   }
  </code></pre>