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

How to get all cookies #1

Closed
2505rathod opened this issue Jun 16, 2017 · 3 comments
Closed

How to get all cookies #1

2505rathod opened this issue Jun 16, 2017 · 3 comments

Comments

@2505rathod
Copy link

How to get all cookies?

@bukinoshita
Copy link
Owner

There's no way to do that @2505rathod.

  • You can only get it one by one with load(name)
  • You can try select([regex]) that will return an object with all cookies that match the regex.

@bukinoshita bukinoshita reopened this Jun 25, 2017
bukinoshita added a commit that referenced this issue Jun 25, 2017
@bukinoshita
Copy link
Owner

bukinoshita commented Jun 25, 2017

Hey @2505rathod, today I implemented loadAll(). It will return an object containing all cookies available. code

// eg:

cookies.loadAll()
/*
{
  cookie1: "value1",
  cookie2: "value2",
  cookie3: "value3",
  cookie4: "value4",
  cookie5: "value5"
}
*/

Let me know if this is what you needed so I can release a new version.

@2505rathod
Copy link
Author

2505rathod commented Jun 26, 2017 via email

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

No branches or pull requests

2 participants