J
Jonathan Wood
I'm implementing shopping cart functionality on a Website.
In some cases, the products will be selected on another site. The product ID
will be posted to my site, which will look the product up in a database, and
allow the user to purchase it.
That is simple enough. But it would be nice to allow the user to return to
the original site to add even more products to the shopping cart before
checking out (like Americart does). I'm trying to determine the best way to
track the products in the shopping cart while the user is back at the
original site selecting more objects.
If only a single product could be checked out, I would simply store the
information in the session object. But I'm unsure how long this would be
maintained while the user is back at the original site selecting another
project. I'd prefer not to use the database for this because the data is
very temporary and may need to be discarded if the user does not return. The
only other option are cookies, which I haven't really used before.
Has anyone done anything like this? I'd appreciate any suggestions.
Thanks.
Jonathan
In some cases, the products will be selected on another site. The product ID
will be posted to my site, which will look the product up in a database, and
allow the user to purchase it.
That is simple enough. But it would be nice to allow the user to return to
the original site to add even more products to the shopping cart before
checking out (like Americart does). I'm trying to determine the best way to
track the products in the shopping cart while the user is back at the
original site selecting more objects.
If only a single product could be checked out, I would simply store the
information in the session object. But I'm unsure how long this would be
maintained while the user is back at the original site selecting another
project. I'd prefer not to use the database for this because the data is
very temporary and may need to be discarded if the user does not return. The
only other option are cookies, which I haven't really used before.
Has anyone done anything like this? I'd appreciate any suggestions.
Thanks.
Jonathan