Added the functionality to set the session with the chatroom identifier