Storing nested arrays in a cookie

Posted by morpheous on Stack Overflow See other posts from Stack Overflow or by morpheous
Published on 2010-04-22T15:54:11Z Indexed on 2010/04/22 16:13 UTC
Read the original article Hit count: 173

Filed under:
|

I am trying to store nested arrays in a cookie. I decided to store the array as a JSON string. However, I am getting this warning:

PHP Warning: Cookie values can not contain any of the following ',; \t\r\n\013\014' in foobar.php

Is there a recommended way of storing nested arrays in a cookie?

© Stack Overflow or respective owner

Related posts about php

Related posts about cookies