yii\mongodb\Session::destroySession PHP Метод

destroySession() публичный Метод

Do not call this method directly.
public destroySession ( string $id ) : boolean
$id string session ID
Результат boolean whether session is destroyed successfully
    public function destroySession($id)
    {
        $this->db->getCollection($this->sessionCollection)->remove(['id' => $id], ['justOne' => true]);
        return true;
    }