Java 类org.springframework.security.web.authentication.logout.CookieClearingLogoutHandler 实例源码

项目:steve-plugsurfing    文件:SignOutController.java   
@RequestMapping(value = "/signout", method = RequestMethod.GET)
public String signOut(HttpServletRequest request, HttpServletResponse response) {
    new SecurityContextLogoutHandler()
            .logout(request, response, null);
    new CookieClearingLogoutHandler(AbstractRememberMeServices.SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY)
            .logout(request, response, null);
    return "redirect:/manager/signin";
}
项目:steve    文件:SignOutController.java   
@RequestMapping(value = "/signout", method = RequestMethod.GET)
public String signOut(HttpServletRequest request, HttpServletResponse response) {
    new SecurityContextLogoutHandler()
            .logout(request, response, null);
    new CookieClearingLogoutHandler(AbstractRememberMeServices.SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY)
            .logout(request, response, null);
    return "redirect:/manager/signin";
}