Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

I can cookies from CookieManager, but it seems not connected to NSHTTPCookieStorage. #153

Open
jihyeonjeong11 opened this issue Jul 30, 2019 · 2 comments

Comments

@jihyeonjeong11
Copy link

Thanks in advance.

CookieManager.getAll => Object {
  "GD5ATL": Object {
    "domain": ".crunchprice.com",
    "name": "GD5ATL",
    "path": "/",
    "value": "%7B%22__gd5a%22%3A%22__gd5si%22%2C%22__gd5t%22%3A%22YToyOntpOjA7czozMjoiR3L0FCjFUOHQV%5C%2FiG1%2BpolI4onqUZml2nlupvX2wdYTMiO2k6MTtzOjMyOiIPDj7ZG%2Bi59CEugaw1L%2BJcpP64r0%2BrjvyqF2as%5C%2FYDGSiI7fQ%3D%3D%22%7D",
  },
  "GD5SESSID": Object {
    "domain": ".crunchprice.com",
    "name": "GD5SESSID",
    "path": "/",
    "value": "63008s7mrd8ejd9ok38pvst69b4f58s19c3uj4picvldhm1ftun8vl9ebv4078ri3tbk3eqdqmka4auihqmqbkp9uujoqibsmntqs01",
  },
  "myCookie": Object {
    "domain": "some domain",
    "name": "myCookie",
    "path": "/",
    "value": "myValue",
  },
}

So I successfully managed to get cookies from my login response.
And it persists when app is killed, only in CookieManager.

How can I set cookies to its native wrapper?

@LLEmily
Copy link

LLEmily commented Aug 2, 2019

s to its native wrapper?

how can you get the cookie, need your help

@safaiyeh
Copy link

safaiyeh commented Jan 2, 2020

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store
We can create issues and PRs there to continue the development of the project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants