From the Recently Viewed Listings Box (Admin Interface -> Settings -> Site Settings -> Recently Viewed Listings Box) menu:
If checked, enables the recently viewed listings box, which will be displayed (by default) in the footer of the website.
and set (required) an
Enter the number of hours after which a listing will be removed from the recently viewed table.