I’m nearly done with my Voting App project, but I have an issue. If a user isn’t logged in, how do I keep track of which polls they have voted on? I realize this is not a requirement, but this is something I would like to implement.
My ideas are:
- Set a cookie or local storage variable which stores ids of voted polls
- Store IPs of users voting on a poll in the poll schema in mongodb. (not something I want to do).
If anyone has implemented this feature or has any ideas, it would be great if you could share what you did/would do.