title: On CodeIgniter how to do simplest authentication / authorization
body: <p>I have a <code>People</code> table and a <code>Roles</code> table. One Person can only be linked to One Role at any time. But One Role can house many People.</p>
  
  <p>On my <code>People</code> table I have <strong>Email</strong> and <strong>Password</strong> as columns. How can I using these create the most basic of authentication / authorization setups? I have a CodeIgniter project, and on the <code>newscontroller</code>, I want user to:</p>
  
  <p>1) Redirect Users to Login (if not logged in already)
  2) If their roles aren't <code>Admin</code> or <code>Staff</code> then I'd like them to be re-directed to Home/Index, otherwise they can have fun creating news articles, deleting them ... etc</p>
  
  <p>I want to keep it as simple as possible, so no Hashing / Salting of passwords .. etc (that all will come later). The tutorial I followed used a little cookie for persistence of authentication / logged in state. But it didn't work for me. :(</p>
  
  <p>Can such a step be called "simple" ? If it is too much, then some good links would be useful. As the ones I googled were crap.</p>
  
  <p>Thanks</p>