title: User authentication with CodeIgniter
body: <p>I am writing a web application using PHP. I want to use the MVC pattern for this, and decided to go with <a href="http://codeigniter.com/" rel="nofollow noreferrer">CodeIgniter</a>. My application will have some pages which will require authentication, and some pages won't. I want to design this in a very generic way, so that there should be no code duplication. Can any one point to some good "design/class structure" for this?</p>