public long requestQueryId(IClientSession session, Long statementId) {
    long queryId = requestQueryId();
    session.addQueryId(statementId, queryId);
    return queryId;
  }
Check whether current user has logged in.

@return true: If logged in; false: If not logged in
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/session/SessionManager.java