react-native-cookies icon indicating copy to clipboard operation
react-native-cookies copied to clipboard

Same cookie on different subdomain

Open Nhacsam opened this issue 7 years ago • 2 comments

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 avatar Oct 26 '18 17:10 Nhacsam

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

Nhacsam avatar Oct 29 '18 11:10 Nhacsam

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.

safaiyeh avatar Jan 02 '20 19:01 safaiyeh