How to perform logout programmatically in spring 3
问题 I have a spring configuration for logout like follows: <logout logout-url="/abc/logout" logout-success-url="/abc/login"/> 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.. public void suppressUserProfile() { //... return "redirect:/abc/logout"; } 回答1: It depends. If it's ok for your app to place the logged out user on