I have the following code:
Auth->user()) { echo $this->element(\'header\'); } else { e
//In the views (or layout) $session->check('Auth.User.id'); //In controller $this->Auth->User('id');