I have the following code:
Auth->user()) { echo $this->element(\'header\'); } else { e
You don't need to do $this->set(compact('authUser')); only use this in View:
$this->set(compact('authUser'));
if ($this->Session->read('Auth.User')){ // do something }