Optimization

  • Thread starter Thread starter SirPyros
  • Start date Start date
S

SirPyros

I'm building a shopping cart solution. In terms of scalability and
perfomance for the server, which is better, only storing a small
variable in session state to denote a cart and load information from
the database and calculate values for the cart every time they need to
be shown, or save item id and quantity information in a class and store
it in the session, then as values are calculated they are stored in the
class to be used later if no items have changed.
 
April 6, 2005

If you haven't specifically secured your session state, then it is a rule
of thumb not to store anything in session state that you base security
decisions on later. This would force your decision to use the database. Hope
this helps! :-)
Joseph MCAD
 

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