What we did is creating seperate index.html pages. The standard index.html we used to redirect to the SSO so after login you end up in index3.html. For anonymous users we use index4.html. And when a user logs out he is redirected to the login.html which has a button to redirect to the SSO again if the user needs to login again.
How is your index structure?
Regards,
Ronald