I\'m going to implement logout button in my PhoneGap application, which will return the user into authentication page (with cleared fields). For the button
use: navigator.app.clearHistory();