Welcome to the Cookbook

loading...

5.2.5.7 logout

Provides a quick way to de-authenticate someone, and redirect them to where they need to go. This method is also useful if you want to provide a 'Log me out' link inside a members' area of your application.

Example:

$this->redirect($this->Auth->logout());
  1. $this->redirect($this->Auth->logout());