How can I make the login and logout methods recharge the entire site?

This way I only load the view in question, I want to recharge the entire page.

public function login() {
       ......
       if($this->Auth->user()) {
         return $this->redirectUrl();
       }
 }

     public function logout() {
       return $this->redirect($this->Auth->logout());
     }

What do you mean by recharge?

by recharge I am assuming you want to reload the same page where the user has logged out. If that is correct you can do…

$this->Auth->logout();
$this->redirect($this->referer());

No, I want the index, but not only do I want to load the content, if not the whole page as in HTML http-equiv = “refresh” I have an element, which does not refresh