General SSO authentication question here. When a user initially visits your application you authenticate them with the identity provider. They may or may not already be logged in, but either way they authenticate. I'm guessing you don't want to try to authenticate them with every page request, so do you then set a session variable to say they're logged in? And if so, what happens when they intentionally log out of the central system? That should also log them out of your application, but if you're not checking each time, how would you know? The same holds for if their central log in expires. I feel like I'm trying to reinvent the wheel here and don't want to.