I'm reading the Codeigniter 2.2 tutorial and I am not clear on how to use sessions for logging in.
Say I have a login.php, which checks user data with the database. Then if its ok then I should set the session in a controller?
And then in say admin.php page I should check if session exists by? :
Or how do I check if the person is logged in?