Some more work to establish the session for the browser (still in progress).