Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get all cookies

let c = document.cookie.split(";").reduce( (ac, cv, i) => Object.assign(ac, {[cv.split('=')[0]]: cv.split('=')[1]}), {});

console.log(c);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cookies
ADD COMMENT
Topic
Name
1+2 =