Interface SessionStateCleanable

    • Method Detail

      • cleanSessionState

        void cleanSessionState​(ApplicationSessionStateSupport applicationSessionStateSupport,
                               javax.servlet.http.HttpServletRequest req,
                               javax.servlet.http.HttpServletResponse resp)
        Clean session state of the attributes that are no longer necessary. For example:
         
          new ApplicationSessionStateSupport("MyApplicationKey", (sessionStateSupport, req, resp) -> sessionStateSupport.removeAttribute("AttributeKeyToRemove", req, resp));
         
         
        Parameters:
        applicationSessionStateSupport - the ApplicationSessionStateSupport instance that is calling cleanSessionState.
        req - The HttpServletRequest
        resp - The HttpServletResponse