I'm using moodle latest version with simplesamlphp for sso login. We have another application (app2) which also uses same simplesamlphp for login. So when user logout from the "app2", single signout service triggered and sso also got logged out. This is working fine as expected. But moodle still keeps the session and didn't validate the current session with sso server for each request.
My expectation is that when a user logout from other application should reflect in mooodle also. Is there a way to do this? Or do we need to develop a custom solution ?