Have a way to get all cookie names
See original GitHub issueThis library is wonderful for getting and setting individual cookies. I have a case where I need to get all cookies though.
It’d be nice to just re-use the get()
function without specifying a key:
var cookies = new Cookies(req, res, keys);
var allCookies = cookies.get();
Thanks for your hard work!
Issue Analytics
- State:
- Created 9 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How can I list all cookies for the current page with Javascript?
const cookies = await cookieStore.getAll(); //Array of all available cookie info cookies.forEach(c => console.log(`${c.name}: ${c.value}`));.
Read more >How to list all the cookies of the current page using JavaScript
Access the cookies using document.cookie. · Use the .split() method to split them on “;” to get an array of cookies. · Traverse...
Read more >cookies.getAll() - Mozilla - MDN Web Docs
The getAll() method of the cookies API retrieves all cookies from a single cookie store that match the given information.
Read more >Get all cookies with Javascript | The Electric Toolbox Blog
In my last jQuery post I looked at how to set, get and clear cookies with jQuery and now look at how to...
Read more >JavaScript Cookies - W3Schools
Deleting a cookie is very simple. You don't have to specify a cookie value when you delete a cookie. Just set the expires...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i also want to get all cookies; it would be good if support;
Has there been any progress on implementing this feature?