Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想跟踪我们网站的重复用户,以通过使用 cookie 向其他人展示。它可以是 java 或 javascript。
如果您想要一个非常简单的系统,您可以在用户第一次访问时编写一个带有 GUID 类型值的 cookie。然后,您将在每个请求中取回此 cookie。当您处理请求时,在您的数据库中记录您想要跟踪的信息以及来自 cookie 的 GUID。
根据需要切片和切丁。
你会发现说起来容易做起来难,也很难得到任何有意义的数据。