Yet another shopping cart question... ;)
Posted: Thu Oct 24, 2002 4:25 pm
Hello everyone it's me again, I am in the planning stages of a shopping cart and was trying to think of different ways to store the shopping cart information.
I originally thought about storing the item number, color, sizes, lengths, qty, etc in a cookie on the persons computer but that seemed too much control passed over to the user
I next thought about doing a shopping cart that requires a user to login... but they would have to login to get to it and once they added an item it would be in the shopping cart table forever...
Then someone told me they had used a script to delete everything out of the table that has a unique session variable that is used to keep track of different peoples shopping cart... is there a way to delete them on session end even when then don't use a logout script?
What other ways are there to keep track of the shopping cart information? What ways do you use?
I would like it so that a person has to log in to add an item to their cart... i was thinking about a unique cart id for each user that never changes... . Then they can add an item and it stays in the shopping cart for a certain time period. Is there a way that every week a script would run that would clean out the table of all the rows assigned to a user if they don't log in for a week or two?
I originally thought about storing the item number, color, sizes, lengths, qty, etc in a cookie on the persons computer but that seemed too much control passed over to the user
I next thought about doing a shopping cart that requires a user to login... but they would have to login to get to it and once they added an item it would be in the shopping cart table forever...
Then someone told me they had used a script to delete everything out of the table that has a unique session variable that is used to keep track of different peoples shopping cart... is there a way to delete them on session end even when then don't use a logout script?
What other ways are there to keep track of the shopping cart information? What ways do you use?
I would like it so that a person has to log in to add an item to their cart... i was thinking about a unique cart id for each user that never changes... . Then they can add an item and it stays in the shopping cart for a certain time period. Is there a way that every week a script would run that would clean out the table of all the rows assigned to a user if they don't log in for a week or two?