Class AjaxAwareInvalidSessionStrategy

  • All Implemented Interfaces:
    org.springframework.security.web.session.InvalidSessionStrategy

    public class AjaxAwareInvalidSessionStrategy
    extends Object
    implements org.springframework.security.web.session.InvalidSessionStrategy
    Same as SimpleRedirectInvalidSessionStrategy except for XMLHttpRequests in which case a status code is returned instead of redirection.
    • Method Detail

      • onInvalidSessionDetected

        public void onInvalidSessionDetected​(javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws IOException,
                                             javax.servlet.ServletException
        Specified by:
        onInvalidSessionDetected in interface org.springframework.security.web.session.InvalidSessionStrategy
        Throws:
        IOException
        javax.servlet.ServletException