def init_session(self, protocol_key, address, sessionhandler):
        # This is currently 'telnet', 'ssh', 'ssl' or 'web'
        self.protocol_key = protocol_key
        # Protocol address tied to this session
        self.address = address

        # suid is used by some protocols, it's a hex key.
        self.suid = None

        # unique id for this session
        self.sessid = 0  # no sessid yet
        # database id for the user connected to this session
        self.uid = None
        # user name, for easier tracking of sessions
        self.uname = None
        # if user has authenticated already or not
        self.logged_in = False

        # database id of puppeted object (if any)
        self.puid = None

        # session time statistics
        self.conn_time = time.time()
        self.cmd_last_visible = self.conn_time
        self.cmd_last = self.conn_time
        self.cmd_total = 0
        self.encoding = "utf-8"
        self.screenreader = False

        self.protocol_flags = {}
        self.server_data = {}

        # a back-reference to the relevant sessionhandler this
        # session is stored in.
        self.sessionhandler = sessionhandler
Get a Group ID given a Group Name or Group Name and VPC ID
dataset/ETHPy150Open evennia/evennia/evennia/server/session.py/Session.init_session--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/boto_secgroup.py/get_group_id