|
You should place shortlisted item IDs into some storage so that they persist between user requests. Usually this is done with native php mechanism known as sessions. Sessions are well described in php manual. In general, user is identified by unique cookie and each cookie has corresponding temporary storage such as file on filesystem or record in database.
|