You need a cookie and functionality (to moderate cookie) where you will be stored product ids from comparsion. Then you need a page with repeater where will be listed all of products from the list from cookie. Then I think by javascript you can markup differencies between those products.