Interface SessionStateCleanable
-
public interface SessionStateCleanableA base interface to perform session cleanup onApplicationSessionStateSupport. ThecleanSessionState(org.sourceid.saml20.adapter.state.ApplicationSessionStateSupport, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)method is called when the user's idle or max timeouts have been exceeded. Implementations of this class should remove all attributes tied to the specific application session.- Since:
- 9.1
- See Also:
ApplicationSessionStateSupport
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanSessionState(ApplicationSessionStateSupport applicationSessionStateSupport, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Clean session state of the attributes that are no longer necessary.
-
-
-
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 HttpServletRequestresp- The HttpServletResponse
-
-