store past results in cookie