Method Location Comments
Cookies Client Requires browser support. Not easy to implement.
QueryString (ASP Request object method) Between server and client Limited data size (around 2K). Suitable for a few data entries.
URLData (WebClass method) Between server and client Same as QueryString
Text files (ASP TextStream object) Server Consumes server disk space. Slow due to read-and-write to hard drive.
Database Server Consumes server resources such as memory and data connections.
COM Component (class) Server Easy to implement. Consumes server memory.
Table 1 Use Methods That Give State to Data. You can use several methods to pass data from one method call to the other. Not all methods are suitable for a shopping cart; COM is the recommended method.