title: Implement session timeout in cordova apps
body: <p>I want to implement session timeout in my cordova app but setTimeOut doesn't work properly. Is there a better way to logut user after x mins automatically if user is not using app for x mins even if app is in background</p>