You could use eiter Session or Cookie. Or you could temporarily stor intodatabase related to Session ID. I think, most of the shopping carts are madewith cookies.