Shopping Cart with no login

I'm building my first commerce site with a shopping cart and NO registration.

What is generally the best way to handle people that will buy multiple items?

A Session Datatable or Dataset and add rows as they go?

Any examples?
Larry Bristersr. DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alpesh PatelSolution Architect at TCS (SAFe®Agilist, TOGAF® Foundation, PSM I®, MCP, MCSD)Commented:
Hi,

If you save lots of data in session then it slow down the server and degrade the performance of your site. it's better to save data in database and finally at time of check out delete from database.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Larry Bristersr. DeveloperAuthor Commented:
PatelAlpesh:
So...create a GUID along the way and add as "customerID?
CodeCruiserCommented:
Yes you can generate a GUID for each session and save the GUID to the session. The cart can be saved to DB with the GUID. If the number of clients or the size of cart is limited then keeping data in session would be fine. If you persist to DB, you would need some sort of regular cleansing of data.
Larry Bristersr. DeveloperAuthor Commented:
Thanks folks...
Created a "no registration" set of tables handled with GUID and Sessions

If session times out or user leaves site...flagged for delete

Created job that runs 5am and deletes all flagged data
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.