OkHttpClient client = new OkHttpClient.Builder()
.cookieJar(new JavaNetCookieJar(new CookieManager(
new PersistentCookieStore(getApplicationContext()),
CookiePolicy.ACCEPT_ALL))
.build();
from http://stackoverflow.com/questions/25461792/persistent-cookie-store-using-okhttp-2-on-android
A persistent cookie store which implements the Apache HttpClient CookieStore interface.