I would like to store a cookie object with multiple values associated with various keys. Does anyone know if this is possible?
+1
A:
Hmm, you could serialize your object using JSON and then store the JSON.
psychotik
2010-04-16 00:20:22
Is there an obvious / easy way of doing that?
Matrym
2010-04-16 00:26:43
jQuery's serialize only seems to do forms http://api.jquery.com/serialize/
alex
2010-04-16 00:39:00
http://www.json.org/json_parse.js
psychotik
2010-04-16 00:46:39
Thank you. I didn't know json parse existed :D
Matrym
2010-04-17 05:05:05