joeferraro / react-native-cookies

Cookie manager for React Native
MIT License
789 stars 317 forks source link

Same cookie on different subdomain #114

Open Nhacsam opened 5 years ago

Nhacsam commented 5 years ago

I have the same cookie name in two different subdomain. For exemple :

const cookie1 = {
  domain: "sub1.mywebsite.com",
  name: "session",
  path:"/",
  value: "6de9c6965c1465ed"
};

const cookie2 = {
  domain: "sub2.mywebsite.com",
  name: "session",
  path:"/",
  value: "a1784ef82bc"
};

When I do CookieManager.get('sub2.mywebsite.com') I get the wrong one

Nhacsam commented 5 years ago

The problem only shows on webkit Webview. It should be partially fixed by my PR.

safaiyeh commented 4 years ago

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.