I'm using the jQuery cookie plugin to read/write/delete cookies. I'm using cookies to store points on a graph that the user plotted on top of a canvas. I'm allowing the user to store the plotted points along with a name in the cookie, I'm also listing the saved cookies so that they can redraw their saved points on the graph.
I was originally saving and reloading the points from cookies by naming each cookie with a sequential number $.cookie(_1)
, $.cookie(_2)
, etc and this worked. Problems start when user deletes a cookie and the sequential numbering breaks.
I would like to save the cookie using the name that the user gives to the plotted points, so basically saving cookies with arbitrary names. If I do this is it possible to read all domain cookies if I don't know their names?