LoginSuccessHandler(CustomAuthenticationSuccessHandlerを拡張)にセッション属性を設定しました
public void onAuthenticationSuccess(HttpServletRequest request,
HttpServletResponse response, Authentication authentication)
throws IOException, ServletException {
HttpSession session = request.getSession();
session.setAttribute("TICKET", "dummyVAL");
}
LogoutSuccessHandler(SimpleUrlLogoutSuccessHandlerを拡張)で同じ値を取得したいのですが、そうすると
public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
HttpSession session = request.getSession();
session.getAttribute("TICKET");
}
null を取得します。successhandler で設定したログイン ハンドラーのセッション値を取得するにはどうすればよいですか。