yii\mongodb\Session::destroySession PHP Method

destroySession() public method

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