I am creating cookies using jQuery cookie, which are setting when I don't use JSON.stringify as in the following:
$.cookie("previousObject", savedObjs);
but which do not set when I use JSON.stringify(), as in the following:
$.cookie("previousStories", JSON.stringify(savedObjs));
I have also tried the following:
$.cookie.json = true;
$.cookie("previousObject", savedObjs);
The cookie that should be being created logs to the console,but when I look under resources in the browser, there are no cookies there.
How do I make these cookies work?
"previousStories=plus the stringified object