Convert connections to sessions.