Running Federation Services, once the session times out on the SP side, users are not getting redirected to the login page and as such, they get an error in the browser.
When the error occurs on the SP side, you might try on the SP side to use the ACO:
to redirect the error to a custom error page which will clean the cookies and redirect to the requested resource.
You might also consider to upgrade to Federation Manager 12.52 :
By the AdminUI online help:
Federation Partnerships Reference: SSO and SLO Dialog (SAML 2.0 IdP): Authentication (SAML 2.0 IdP)
Track Delegated Authentication Status
Tracks whether delegated authentication is successful. If delegated authentication fails, this setting determines the behavior of the federation system. By default, this check box is selected. If a user does not provide credentials when accessing a protected resource configured for delegated authentication, delegated authentication fails. If that user tries accessing the resource again in the same browser session, the browser displays a 404 error and the federation system writes an error message to the affwebservices.log and the FWSTrace.log files. The error message indicates that the credentials for delegated authentication are missing. The federation system does not redirect the user back to the delegated authentication URL to provide credentials.
To have the federation system redirect the user back to the delegated authentication URL in the same browser session, clear this check box. By disabling tracking, a user can try accessing the resource again in the same browser session without receiving a 404 error. Instead, the federation system redirects the browser to the delegated authentication URL. where the user is prompted again for credentials.
(Help for Partnership Federation and Federation Standalone for 12.52)
KB : TEC617315