Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL cart multiple user sessions

Status
Not open for further replies.

mancroft

Programmer
Oct 26, 2002
267
GB
MySQL cart multiple user sessions

I am doing a shopping cart in PHP/MySQL.

What happens when more than one person uses the cart at the same time?

Presumably there has to be a separate session for each person otherwise the two orders might get mixed up.

Is this done automatically or do I have to do something to the scripts so that the two (or more) users data stays separate?
 
why not store the session id in the cart table...that is what i'd do...

table_cart

rec_id
sess_id
prod_id
quantity
etc


Bastien

cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top