Implement joining and leaving sessions