title: Rails 3 session & cookie how to persist session id cookie
body: <p>I am developing a simple shopping cart based on session_id i.e. for determination of a user cart items used session_id.  </p>
  
  <p>But when user closes a browser and then opens it again a <strong>session id</strong> is been changed. And he loses all his items in cart.</p>
  
  <p>I suspect such feature I can provide with saving <strong>session id</strong> in cookie.</p>
  
  <p>Am I right?  </p>
  
  <p>Any way my question is <strong>How to provide a functionality that allows users get their cart items even after closing a browser?</strong></p>