Welcome to the Cookbook

loading...

5.7.1.6 destroy

The destroy method will delete the session cookie and all session data stored in the temporary file system. It will then destroy the PHP session and then create a fresh session.

$this->Session->destroy()
  1. $this->Session->destroy()