# franmontiel/PersistentCookieJar

A persistent CookieJar implementation for OkHttp 3 based on SharedPreferences.

Repository: https://github.com/franmontiel/PersistentCookieJar
Canonical: https://ross.abutalabs.com/products/persistentcookiejar
Language: Java
License: Apache-2.0
License Family: permissive
Topics: android, android-library, okhttp3, cookies, cookiejar
Last push: 2022-08-18T12:20:34+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3856, "days_push": 1476, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1813, forks 242 (observed 2026-08-28T04:05:39.702042+00:00)

## What it is
A persistent CookieJar implementation for OkHttp 3 on Android that stores cookies in SharedPreferences. It provides in-memory caching with pluggable persistence and cache interfaces.

## Use cases
- persist login cookies across app restarts in an Android app
- keep users logged in with OkHttp sessions
- clear session cookies on app logout
- plug a custom cookie storage into OkHttp
- handle cookies thread-safely in an Android HTTP client

## When to choose
- you use OkHttp 3 on Android and need cookies to survive process death
- you want a simple, drop-in CookieJar backed by SharedPreferences

## When to avoid
- you are not on Android/JVM or not using OkHttp 3
- you need modern storage like DataStore or encrypted cookie storage

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, caching
- domain: android-tools, web-development, developer-tools
- platform: jvm
- tags: okhttp, cookies, cookiejar, sharedpreferences, session-persistence, android

## Member repositories
- franmontiel/PersistentCookieJar (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:39.702042+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:21:10.168350+00:00, confidence not recorded.
  - readme: https://github.com/franmontiel/PersistentCookieJar (fetched 2026-08-28T04:05:39.702042+00:00, sha 15bf816c4bbc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
