title: Optimizing the shopping cart database calls
body: <p>Shopping Cart items are grouped and shown as links. For instance, a user has got a group of "T-shirts". When he clicks that link ("T-shirts") a bootstrap modal window pops up with all the t-shirts listed as links on the right and all the details (picture, size, price, etc) about the selected (first on the list) t-shirt are shown on the left. </p>
  
  <p>Now, when a user clicks on any other link (inside that modal window) to see the details of a different t-shirt a request to the database is made. Average user can make over 100 request in a matter of minutes, checking his stuff and retrieving the same data over and over, which looks as a waste of resources to me.</p>
  
  <p>My question is - how do I go about optimizing this process?
  Can I load all the data about the chosen group and just pass it to the modal window every time user clicks on a different item?
  If so, where do I store this data? </p>
  
  <p>As far as I understand session variables still require some server side work which I would like to avoid. 
  Are cookies a way to go in this scenario? Or is it an overkill and I shouldn't be bothered at all? </p>
  
  <p>Thanks</p>