Shopping cart

  • Thread starter Thread starter longroad
  • Start date Start date
L

longroad

I hope this is the right place to ask this.
When developing an e-commerce website, is it generally recommended to
implement the shopping cart using sessions, or writing straight to the
database (as in IBuySpy)?
I realise sessions would be quicker, however most examples i see on the
net are pure database solutions.
 
Sessions don't scale well - imagine that you have two webservers behind load
balancing server. Also if you store cart in database, you allow user to
pause shopping and continue from different machine or even next day. It
depends on design of course :)
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top