Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set path? #14

Open
GammaGames opened this issue Jun 25, 2018 · 1 comment
Open

Set path? #14

GammaGames opened this issue Jun 25, 2018 · 1 comment
Assignees

Comments

@GammaGames
Copy link

I am working on porting a website into Electron and am using js cookie to set and get cookies. Js cookie lets me set a path, since the web page isn't at site.com/ to prevent cookie naming conflicts between apps. This still allows me to writethe cookies to the correct paths in localStorage, but it's not able to read the cookies back when I go to reload the page.

I was wondering if it would be worthwhile to allow the user to set a path to read cookies from. I'd really like to leave the javascript from the website intact with no changes, and so far it's been going well aside from the inability to read the cookies I've set.

@radiofreejohn
Copy link

Hey @GammaGames – sorry for not responding sooner, this should totally be possible since Tough Cookie (the backing library) supports it.

I'm not sure when or if I'll have time to put work in on this, but I'll give it a try. If you have a PR, feel free to @ mention me, and I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants