Hi,
i want to ask for the question in the subject this post. Well -- what way is for you the best and why?

I think right now, if is better the shopping cart make with support SESSION or after add the item to the cart this item save into table in database...

I am trying both ways, but i can't decide, which the way is better...

Thank you for your views

Member Avatar for Zagga

Hi Manny7,

I wouldn't feel comfortable passing details like someones credit card number between pages with a SESSION, but if you are just passing product information then it should be fine. I can't see any point accessing a database until you need to store or retrieve sensitive information.


Zagga

You can use CMS (Content Management System) for your cart solution such as ZenCart or OsCommerce.
This CMS provide secure cart and payment gateway for your site.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.