title: If session expires, automatically redirect home - Codeigniter
body: <p>Is there somewhere in codeigniter where I could configure an automatic redirect to my root page if the user's session is expired (I am not trying to extend the session expiration's time)?</p>
  
  <blockquote>
    <p>Situational example:</p>
    
    <p>User logs in, leaves page idle for one day, returns to page that
    requires validated session and sees PHP errors everywhere.</p>
  </blockquote>
  
  <p>I'd prefer for anything in this situation to be redirected to my root login page.</p>
  
  <p>Thank you!</p>