Here is my code i have html link like this
<a href="property-view-<?php echo $final_url;?>" target="_blank" id="<?php echo pro_name;?>" onclick="addBuilderUrlToGoogle(<?php echo $propertyid?>);"><?php echo $pro_name;</a>
these php values coming from database it has (thousands of) number of results, here i need to set cookie for this links. If its clicked means i need to store that links in cookie and i need to show last five viewed links in another page.