Identifying a returning user

I plan to create a ‘like’ system so that a visitor - who isn’t registered or logged in - can like something on the site. I want to prevent the visitor clicking again when he/she returns, which means finding some sort of unique identifier which will remain the same for that visitor.

I guess that wix currentUser Id is different each time a user arrives at the site, but maybe I’m wrong - or is there another readily accessible marker that a user carries around?

You can use local wix-storage to save the status (in the visitor’s browser). When the visitor returns, the status can be checked to see if this visitor has already liked. This won’t 100% prevent multiple likes, but it’s probably the best that you can do without requiring login.

Thanks. I didn’t realise that local storage is kept in the user’s browser. That really helps - as you say, it doesn’t prevent multiple liking 100%, but good enough for me.