Keeping a global session around so that Cordova can disconnect.