You would want to save the productID values in the cookie comma-separated that way you could store more than one. Then you could use an IN instead of = to and an "il" (integer list) as the parameter type in your recordset to return all of the previously viewed products instead of just the last one.