javascript - jQuery: Read all domain cookies if you don't know their names -


i'm using jquery cookie plugin read/write/delete cookies. i'm using cookies store points on graph user plotted on top of canvas. i'm allowing user store plotted points along name in cookie, i'm listing saved cookies can redraw saved points on graph.

i saving , reloading points cookies naming each cookie sequential number $.cookie("_1"), $.cookie("_2"), etc , worked. problems start when user deletes cookie , sequential numbering breaks.

i save cookie using name user gives plotted points, saving cookies arbitrary names. if is possible read domain cookies if don't know names?

you don't need jquery this. can read cookies accessing document.cookie , parsing accordingly.

see example here.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -