title: Save temporary data in cookies
body: <p>I am working on a website where the I need to temporary save some strings.</p>
  
  <p>Say for example I have 4 string:</p>
  
  <pre><code>1. hello
  2. world
  3. foo
  4. test
  </code></pre>
  
  <p>I need to implement a FIFO (first in first out) system that means if I add a new string, the first (oldest) item should be removed. How does one implement this by using the jQuery cookie plugin?</p>
  
  <p>I use the following to get/set the cookies:</p>
  
  <pre><code>console.log( $.cookie("test") ); //get cookie
  $.cookie("test", "hello", { expires: 7, path: '/' }); //set cookie
  </code></pre>
  
  <p>Thanks in advance.</p>