Implementing a voting system without requiring registration

后端 未结 9 1427
旧巷少年郎
旧巷少年郎 2020-12-25 13:18

I\'d like to implement a voting system on my site, without having to force them to create an account. They would ultimately be voting up/down a piece of content which has a

9条回答
  •  暖寄归人
    2020-12-25 13:58

    I'm thinking the same problem right now. my possible approaches will be as follows:

    • (A) you can accept votes from those people who were in your site (using SESSIONS) for at least 15 minutes (it can be approximate time for a user to read an article in a blog/site). when they vote, the timer will reset for the next vote. so this way, there is no use deleting the cookies anymore for users.

    • (B) you can accept votes from unregistered people and taking their email address and sending them a verification link to their vote. when they click the verification link in their email box, then you can actually count the vote. it's like voting per email address.

    • (C) combination of (A) and (B). this way you can be sure you will be sending verification links only every 15 minutes to a single user which will not be a lot :)

提交回复
热议问题