public function logout(Event $event, array $user)
    {
        $controller = $this->_registry->getController();
        if (empty($controller->Cookie)) {
            $controller->loadComponent('Cookie');
        }
        $controller->Cookie->delete('User.Cookie');
    }
public function logout(Event $event, array $user)
    {
        $controller = $this->_registry->getController();
        if (empty($controller->Cookie)) {
            $controller->loadComponent('Cookie');
        }
        $controller->Cookie->delete('User.Cookie');
    }
public function logout ( Event $ event , array $ user ) { $ controller = $ this -> _registry -> getController ( ) ; if ( empty ( $ controller -> Cookie ) ) { $ controller -> loadComponent ( 'Cookie' ) ; } $ controller -> Cookie -> delete ( 'User.Cookie' ) ; }
Removes "remember me" cookie.

@param array $event User information given as an array
@return void
Removes remember me cookie .