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
 
Back
Top