matthewking
Programmer
Hi,
I was just wondering what would be the best solution to create a shopping cart, e.g. in terms of storing the cart, cart items etc.
I was thinking of creating a cart class, an instance of this can be stored in a session, which reads its items from the database using a unique id from the cart, but where does this unique id come from without using a database table for the cart too? this is just me thinking, feel free to suggest completely different ways of doing this
Any ideas/tips/methods/architectures for this would be greatly appreciated..
One requirement for the cart is that each cart item will carry a unknown size xml string, well..less then 5000 characters.
Thanks in advance,
Matt.
I was just wondering what would be the best solution to create a shopping cart, e.g. in terms of storing the cart, cart items etc.
I was thinking of creating a cart class, an instance of this can be stored in a session, which reads its items from the database using a unique id from the cart, but where does this unique id come from without using a database table for the cart too? this is just me thinking, feel free to suggest completely different ways of doing this
Any ideas/tips/methods/architectures for this would be greatly appreciated..
One requirement for the cart is that each cart item will carry a unknown size xml string, well..less then 5000 characters.
Thanks in advance,
Matt.