Switch session without destroying browser window


There are some sessions for different partitions in my app. I want to switch the session without destroying and recreating a browser window. Is it possible? As long as I tried, webContents.session is a read only property. So I could not change it after creating a browser window.