If I configure my CI application to use database for session handling, if a session userdata returns false, I can assume that the user's session has expired.
But what if the actual reason that it returned false was because the database connection was not established successfully?