title: Storing and retrieving an array in a PHP cookie
body: <p>I'm looking to store some data from some 'virtual' index cards. Each card has a front and a back, and the user can store multiple cards. Each side will have data on it.</p>
  
  <pre><code>I ----------------- I I CARD 1 FRONT I I------------------I
  I --------------- I I CARD 1 BACK I I-----------------I
  I ----------------- I I CARD 2 FRONT I I------------------I
  I --------------- I I CARD 2 BACK I I-----------------I
  </code></pre>
  
  <p>OK, my diagrams got messed up a bit. But you get the message. :)</p>
  
  <p>Imagine it from the diagrams above. I'd like to store each card's data (front and back) in a cookie, as an array (maybe), and then be able to pull each value back and insert it where applicable (on a different page).</p>
  
  <p>At the same time, bear in mind that the user can make as many cards as they like. I can't use POST or GET functions. The array bit is debatable, if you can think of an easier way of storing this data in a cookie, let me know. Please note: don't suggest storing in a database, as it won't be convenient for the project. :)</p>