title: CodeIgniter: How to know if $this->load->database(); did connect?
body: <p>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.</p>
  
  <p>But what if the actual reason that it returned false was because the database connection was not established successfully?</p>