title: Storing array in session? How should I do this?
body: <p>So I have a dynamically created playlist that users create by searching for songs. I want to make it so when the page is refreshed all the songs stay there.</p>
  
  <p>What would be the best way to store the playlist?</p>
  
  <p>I have tried using Persist.js but storing an array like: </p>
  
  <pre><code>[["title":"song name", "artist":"someartist"], ["title":"another song", "artist":"one more"]]
  </code></pre>
  
  <p>Always makes the array appear as:</p>
  
  <pre><code>["title", "song name", "artist", "someartist", "title"...]
  </code></pre>
  
  <p>Not what I want. Plus not sure if it is the best idea if the playlist gets large.</p>
  
  <p>So when it be better to create a server session? Or just store all the songs into a database?</p>
  
  <p>Thanks.</p>