I would try the methods described here: Android: how to save cookies? by adding them to the onCreate or init methods of the App.java PhoneGap project class.
You should have the app.java file in your PhoneGap project, perhaps with this content or similar:
public class App extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/index.html"); } }
Change this to check out the CodeSyncManager example:
public class App extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { CookieSyncManager.getInstance().sync(); super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/index.html"); } }
source share