如何在PHP中创建唯一的用户指纹

What is the best way to generate a 'fingerprint' of user unique-ness in PHP?

For example:

  1. I could use a user's IP address as the 'fingerprint', however, there could be multiple other users on the same IP
  2. I could use the user's IP + user agent as the 'fingerprint', however, a single user could simply swap from safari to firefox and again be seen as being unique

Ideally, the fingerprint so label the 'machine' rather than browser or 'ip' but I can't think of how this is achievable.

Open to ideas/suggestions of how you uniquely identify your users, and what advantages/disadvantages your method has.

查看全部
doumei7420
doumei7420
2010/11/03 08:29
  • identifier
  • php
  • user-agent
  • statistics
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

5个回复