def METHOD_NAME(self, identifier: IdentifierType) -> Optional[BaseSession]:
    """Activate a session"""
    session = self.get_by_id(identifier)
    if session:
        self._active.active_id = identifier
    return session