# cookie_jar

> A cookie manager for HTTP requests in Dart

Source: https://talira.ai/catalog/cookie-jar-94j7qs79
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [flutterchina](https://talira.ai/orgs/flutterchina.md)

cookie_jar is a Dart package that stores cookies from HTTP responses and returns the right ones for each request, following the standard cookie policy from the RFC. Its default `CookieJar` keeps cookies in memory until the app exits, and `PersistCookieJar` saves them to files so they survive restarts. It works in Dart and Flutter apps.

## Links

- GitHub: https://github.com/flutterchina/cookie_jar

## Problems it solves

- keep a user's session cookies between HTTP requests in my Flutter app
- persist login cookies to disk so the user stays signed in after restarting the Dart app
- send the right cookies back to the server with each request in Dart

## Features

- save cookies from responses and load the matching ones for a request
- in-memory DefaultCookieJar and file-backed PersistCookieJar
- SerializableCookie for JSON persistence

## Trust

Overall: 0.31 out of 1.
Signals: maintenance 0.27, adoption 0.52, momentum 0.21, community 0.50, backing 0.30, extensibility 0.00.

- 400 GitHub stars
- 17 contributors
- accepts sponsorship (Github, Custom, Custom)
- backed by flutterchina

Warnings:

- last commit 9 months ago

## Alternatives

- [dio](https://talira.ai/catalog/dio-d8sdkjkv.md): HTTP client for Dart and Flutter with interceptors, FormData and cancellation

## Sources

[^1]: https://github.com/flutterchina/cookie_jar/blob/main/LICENSE (checked 29 Nov 2026)
