Changed open session code to use Cast App Name from preferences.