There are two ways, that I can think of, to do this.
- You can store which products they've viewed in a cookie.
- You can store their session_id in a database and then store the viewed products in there related to the session_id.
I think the second option is the better…
Top comments (0)