title: How to store an array into a cookie?
body: <p>How do you store a multi-array type of data into a cookie. </p>
  
  <p>For example: <code>[[1, 'foo'], [2, 'bar'], [3, 'foobar']]</code></p>
  
  <p>I can get it to work with a single dimensional array as such: </p>
  
  <pre><code>cookies[:foobar] = { :value =&gt; cookies[:foobar] &lt;&lt; ",1" }
  </code></pre>
  
  <p>and then do </p>
  
  <pre><code>cookies[:foobar].split(',').include?("1")
  </code></pre>
  
  <p>To verify that <code>1</code> exists inside the cookie. Not too sure how I can get around this with a multidimensional array</p>