Signout Not happening sometimes with Redirect

Hi, Hope you all doing good. Please help me with this problem. I have an open id configuration to interact with two applications. When I click signout from one application, it navigates to the other application and logs out to a user portal SSO given in SAML config. I just redirect to the url to SSO url. Sometimes signout is going to the SSO SAML URL but instead of logging out, it is redirecting back to my landing page. Also, I sometimes see too my logout redirect in debug mode. The code is very simple. I am not able to figure out issue. Please help. Thanks  
0 answers