<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _register(self, session):
 """ Register a session """

        if session.session_id:
            self._sessions[session.name] = session