def logout(*scopes)
      scopes = janus_sessions.keys if scopes.empty?

      scopes.each do |scope|
        _user = user(scope)
        unset_user(scope)
        Janus::Manager.run_callbacks(:logout, _user, self, :scope => scope)
      end

      request.reset_session if janus_sessions.empty?
    end
def logout(*scopes)
      scopes = janus_sessions.keys if scopes.empty?

      scopes.each do |scope|
        _user = user(scope)
        unset_user(scope)
        Janus::Manager.run_callbacks(:logout, _user, self, :scope => scope)
      end

      request.reset_session if janus_sessions.empty?
    end
Logs a user out from the given scopes or from all scopes at once
 if no scope is defined. If no scope is left after logout, then the
 whole session will be resetted.