public function leave(Session $session)
    {
        Logger::debug($this, "Leaving realm {$session->getRealm()->getRealmName()}");

        $key = array_search($session, $this->sessions, true);

        if ($key !== false) {
            array_splice($this->sessions, $key, 1);
        }
    }