Creating a simple password protected area using CodeIgniter

To password protect an area in a site that uses CodeIgniter, all that needs doing is to add a quick check in the main controller?s constructor to see if a session variable has been set.

For more information, see:
http://blog.tripledogs.com/post/216