Drıftstack docs
Docs

Import or export cookies for a profile

You might be here because: “how do I import cookies” · “export my cookies” · “Couldn’t find any cookies in that file” · “Couldn’t read any cookies” · “Import button is greyed out” · “what cookie file formats work” · “Cookie header has no domain” · “load my cookies” · “transfer a login into a profile”

Short answer

Cookies are imported and exported from the session window’s cookies pane while a session on the profile is running: Export saves the jar as JSON; Import reads a file in any common format and writes it into the running session. Because the profile saves its cookies when the session closes, the import becomes part of the profile.

Check first

  • Is a session running? Import is disabled without one, and Export needs at least one cookie present.
  • Signed in and online.

Likely causes and fixes

  1. How to export. In the cookies pane press Export (“Export the cookie jar as JSON”).

  2. How to import. Press Import and choose a file. Accepted formats, auto-detected: a Netscape cookies.txt; a JSON array of cookie objects (as common browser extensions export); a {cookies:[…]} wrapper or browser storage-state file; a raw Cookie: header; or name=value lines. The app reports “Imported N cookies (read as [format], M skipped)”.

  3. “Couldn’t find any cookies in that file (tried JSON, cookies.txt, Cookie header + name=value).” The file was not recognised. Re-export from the source in one of the formats above.

  4. “Couldn’t read any cookies — Cookie header has no domain and no default domain was provided — nothing imported”. A bare header carries no site; use a JSON or cookies.txt export that includes domains.

  5. “input looked like JSON but failed to parse” / “JSON did not contain a cookie array or object”. The JSON is malformed or not a cookie list.

  6. Too large / too many. See Cookie jar too large (limit about 3.9 MiB and 2000 cookies).

  7. From code. GET …/cookies reads the jar and POST …/cookies/set writes it.

If it still fails

Press Talk to a person in this chat (or open Help) and include the format you used, the file size and the exact note under Import. Never send the cookie file itself — it contains your logins.