title: How do I use cookies to store shopping cart content?
body: <p>So I have this little shopping cart included into every page of my website via php include method.</p>
  
  <p>The structure of the shopping cart looks like this:</p>
  
  <pre><code>&lt;div class="shopping_cart"&gt;
  &lt;h4 class="sc_title"&gt;Shopping cart&lt;/h4&gt;
  &lt;form action="../scripts/sc_order.php" method="post"&gt;
      &lt;div class="sc_content"&gt;
          &lt;div class="product"&gt;Product 1&lt;/div&gt;
          &lt;div class="product"&gt;Product 3&lt;/div&gt;
          &lt;div class="product"&gt;Product 5&lt;/div&gt;
      &lt;/div&gt;
      &lt;input type="submit" value="Submit order" /&gt;
      &lt;div class="sc_button"&gt;Clear cart&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>
  But when I go from page to page, the products which have been added from one page disappear from the cart upon entering a new one.</p>
  
  <p>How do I use cookies to remember the cart content?</p>