I have this private session in one of my controllers that checks if a user is logged in:
function _is_logged_in() { $user = $this->session->userdat
I think using hooks is pretty easy. Just create a hook to check $this->session->user. It will be called in every request.
$this->session->user