SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Old Fogey mancroft's Avatar
    Join Date
    Oct 2002
    Location
    lost
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MySQL cart multiple user sessions

    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?
    :

    :

  2. #2
    SitePoint Enthusiast burgesszx's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds like the best way for tackling this is to have a customers registration page, then you can open a session based based on the custoemrs name. If this is just a casual visit then the session name has to be a individual number, randonly generated? iF THEY ARE GOING TO MAKE A PURCHASE ANYWAY THEN YOU WILL NEED TO GERT THEM TO LOG IN to validate the contact details...so only offering purchases to 'members' is the best way in the long run. Am I helpful or what?
    /****ALWAYS LOOK ON THE BRIGHT SIDE OF LIFE!****/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •