如何跟踪我的应用程序的用户,而不强迫他们注册? [英] How do I track users of my app without forcing them to register?

查看:112
本文介绍了如何跟踪我的应用程序的用户,而不强迫他们注册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是跟踪使用cookie的用户,而不强迫他们登记最常见的策略是什么?

What is the most common strategy for tracking users with cookies without forcing them to register?

我创建一个来宾帐户,指定一个GUID,然后把那个GUID值在他们的饼干吗?有没有更普遍接受这样的方法?

Do I create a guest account, assign a GUID, and then put that GUID value in their cookie? Is there a more generally accepted method of doing this?

虽然这是一个普通的web应用程序的问题,我使用ASP.NET MVC。

Although this is a general web app question, I'm using ASP.NET MVC.

推荐答案

一个流行的解决方案,为你写的,是对GUID发送到一个cookie里面的用户。
Obviusly只有当用户启用了cookies,这些解决方案的工作。

One popular solution, as you write, is to send the GUID to the user inside a cookie. Obviusly this solution work only if the user has cookies enabled.

请注意,cookie的内容是谁接收它的用户完全可读。

Please note that the contents of cookies is perfectly readable by the user who receives it.

另外,会话存储临时数据的好地方。
它的持续时间取决于您的网站的配置,如果需要的话,一点点的工作,这是非常耐用,可以对服务器内存的影响很小(在数据库会话)

Also the session is a good place to store temporary data. Its duration depends on the configuration of your site and if desired, with a little 'work, it is extremely durable and can have a low impact on server memory (sessions in the db)

这篇关于如何跟踪我的应用程序的用户,而不强迫他们注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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