I need to write a code which gives me the ability to record if an user has view a record in a table. In my case I have a table of products, and I need to see everytime a customer view a product. Using a Audit table I can see everytime one log in to the website, and if an admin edit anything. But I can't see if they just view it.
I need a guide and maybe a suggestion for a code.
I hope you can help me out.