Creating a session/s for shopping cart and product list for quotes

I am trying to create a bit of code, in PHP, which allows customers to:
1.      Add products to a shopping cart where they can then proceed to checkout (the ordered products are stored in an orders table of the database).
2.      Add products to a product list where they can then request a quote (All quote requests are stored in a quote request table).
Ques: Should I use one session for both the ‘shopping cart’ and the ‘product list’ or should I use one session for each? That is, one for the shopping cart and a separate session for the product list?

Finally can you do so providing an example?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Dave BaldwinFixer of ProblemsCommented:
There should be only one session while they are still active on the web site.  If they don't end up shopping, a new session should be created if they come back.  On the sites I support, if a purchase is completed, the current session is destroyed and a new one is started.  That is done to prevent accidental access to the previous shopping cart and previous order data.

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
Ray PaseurCommented:
What you're looking for is called "eCommerce."  There are many good PHP eCommerce solutions.  If this were 2001 I would suggest looking for code examples, but it's 2015 and today I would suggest a Google search for a product you can install and use out of the box.  Consider X-Cart, Opencart, Magento, etc.

If you want to learn the basics of PHP, this article can help.  Just skip over the parts you already know.

If you want to learn the basics of PHP sessions, this article can help.

Since a PHP session can point to a database record, and a database record can point to any number of other active records, you only need one session.  You may want to learn about HTTP cookies, which offer the "remember me" capability that persists beyond the short life of the PHP session.  If you use cookies properly you can get to know your customers very well!
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

From novice to tech pro — start learning today.