唯一标识用户的最佳方法 [英] Best way to Identify a user uniquely

查看:194
本文介绍了唯一标识用户的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个喜欢/不喜欢功能。为此,我需要识别特定用户喜欢或不喜欢的帖子。我有一个想法,没有用户登录这不能完美地完成,但什么是最接近完美的技术,问题我有如下所述:





  • 大多数用户没有专用的公共IP,他们的IP会在每次会话中保持更改
  • $ b $

    因此,我应该使用哪种技术来实现它? / p>

    我使用的语言是PHP

    解决方案

    阅读关于这个问题的一篇文章,并惊讶有多少方法存在这样的任务。 IP和cookies只是冰山一角。
    查看 evercookie ,生成极端持久性cookie的js库。


    I am building a Like/Dislike feature. For this purpose I need to identify the particular user liking or disliking the post. I have an idea that without user logins this cannot be done perfectly, but whats the closest to perfect technique, Issues I have are stated below:

    • Cookies can be cleared, and vary form browser to browser
    • Most of the users dont have a dedicated public IP, and their IP keeps on changing for every session
    • a combo of cookies and IP might also not serve the purpose

    So which technique shall I use to implement it ?

    The language I am using for this is PHP

    解决方案

    Recently I read an article about this question and was surprised of how many methods exist for such task. IP and cookies are just "the tip of the iceberg". Look at evercookie, js library that produces "extremely persistent cookies".

    这篇关于唯一标识用户的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆