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

Hi,
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?
HonyaAsked:
Who is Participating?

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

x
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.
https://www.google.com/search?q=php+ecommerce

If you want to learn the basics of PHP, this article can help.  Just skip over the parts you already know.
http://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html

If you want to learn the basics of PHP sessions, this article can help.
http://www.experts-exchange.com/articles/11909/PHP-Sessions-Simpler-Than-You-May-Think.html

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
PHP

From novice to tech pro — start learning today.