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

Same cookie on different subdomain #114

Open
Nhacsam opened this issue Oct 26, 2018 · 2 comments
Open

Same cookie on different subdomain #114

Nhacsam opened this issue Oct 26, 2018 · 2 comments

Comments

@Nhacsam
Copy link

Nhacsam commented Oct 26, 2018

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 added a commit to bamlab/react-native-cookies that referenced this issue Oct 29, 2018
Nhacsam added a commit to bamlab/react-native-cookies that referenced this issue Oct 29, 2018
* fixing-subdomain-for-webkit:
  Fixing subdomain issues joeferraro#114
@Nhacsam
Copy link
Author

Nhacsam commented Oct 29, 2018

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

@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

2 participants