fix session on cordova