As per the answer from the link, I understand that if SAML local logout (/saml/logout?local=true
) is invoked Spring-SAML will clean the local cookies. So, I have modified the logout logic in my application to invoke it.
All looks good till now. But my application have session timeout set to 20 minutes in web.xml.
<session-config>
<session-timeout>20</session-timeout>
</session-config>
In case of user inactive for 20 minutes or browser is closed by the user, session will be destroyed by the container silently. In that case SAML Logout is not invoked.
Questions:
- Does Spring-SAML maintains any references once user is authenticated after SAML response is received?
- If yes, where does it maintain references (session or somewhere else)? Any alternative way to clean them up?
- What are the implications if we do not call SAML local logout?
My worry is that if the references are not cleaned up, It might cause memory leaks in a long run of the application.