So the table below could function as an effective cart?
CREATE TABLE `cart_items` (
`item_id` int(11) NOT NULL auto_increment,
`product_id` int(11) NOT NULL,
`date_added` timestamp(14) NOT NULL,
`session_id` varchar(50) NOT NULL,
PRIMARY KEY (`item_id`),
KEY `sessions` (`session_id`)
) TYPE=MyISAM;
If I wanted the cart to be persisitent for one month for example, would I create a separate cookie containing the session id, to allow for the same cart items (provided they have not been automatically deleted after one month) to be reloaded when the user returns? Would it be preferable to create an independent cart_id? Is it all academic at this point? 😉