BcAuthComponent::logout PHP Method

logout() public method

Triggers the logout() method of all the authenticate objects, so they can perform custom logout logic. AuthComponent will remove the session data, so there is no need to do that in an authentication object. Logging out will also renew the session id. This helps mitigate issues with session replays.
public logout ( ) : string
return string AuthComponent::$logoutRedirect
    public function logout()
    {
        if (!empty($this->fields['serial'])) {
            $this->deleteSerial();
        }
        return parent::logout();
    }