This works great...many thanks for this.
Is there a way i can display the last 3 recently viewed items, with the newest items replacing the oldest.?
Also, the detail pages are effectively a template so when you go to view a new product, the last viewed item gets replaced with the current product you are looking at, at product level. is there a way round this? Id like the new product page to still show the last products viewed and only when i leave this page to go to another product page, does the last viewed item show.