[thelist] Backend of a shopping cart system...

Joshua Olson joshua at waetech.com
Fri Apr 5 09:23:01 CST 2002

----- Original Message -----
From: "Chris Blessing" <webguy at mail.rit.edu>
Sent: Friday, April 05, 2002 9:30 AM
Subject: RE: [thelist] Backend of a shopping cart system...

> Is a linked list like a collection object?  FWIW I'm using ASP here to do
> all this. ;)

If I was doing this in ASP I'd be tempted to use the HashTable object.  You
can insert items by sku code, id, or whatever suits your needs because it
uses strings as keys.  Using a hash table you can quickly delete an item
from the basket without even knowing it's index!

Using a database is probably a better idea, altogether, but if you decide
not too, the HashTable could be a quick substitute for Arrays.

Warning: it is probably NOT a good idea to store complex structures--such as
HashTables--in session variables.  Some articles I've read talk about some
of the issues involved in storing objects in the Session.  I can't remember
exactly where I read it, but most like from 4Guys.


More information about the thelist mailing list