有效的方式来使用ASP.NET +饼干匿名个性化 [英] efficient ways to anonymous personalization using ASP.NET + Cookie

查看:164
本文介绍了有效的方式来使用ASP.NET +饼干匿名个性化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现个性化匿名在ASP.net环境。我知道,ASP.NET 2.0提供档案。不过,我想避开交通到数据库尽可能因为我工作的网站是一个比较高流量的网站。

I am trying to achieve anonymous personalization in a ASP.net environment. I know that ASP.NET 2.0 provide Profile. However, I want to avoid traffic to the database as much as possible since the site I am working on is a relatively high traffic site.

另一个明显的解决方案是饼干,但鉴于饼干的限制,我是想知道是否有人有信息存储到Cookie进行任何有效的方法。有谁知道亚马逊或雅虎如何应对匿名。个性化?

The other obvious solution is cookie, but given the limitation of cookie, I was wondering if anyone have any efficient method to store information into cookie. Does anyone know how amazon or yahoo deals anon. personalization?

最后,我们正在努力来提供不同的动态内容,我们的用户群上的pre定义运动的一组业务规则轮廓。原因是衡量我们网站的转化率。同样的活动可以在网站的所有不同页面的使用。我需要将其设置为一个cookie的原因是,用户能够看到相同的内容担任了previously,如果我们希望它是。所以这是我在饼干现在。

Ultimately, We are trying to serve up different dynamic content to our user base on a set of business rules outline in a pre-defined campaign. The reason is to measure conversion rate in our site. The same campaign can be use on all different pages of the site. The reason I need to set this to a cookie is that the user is able to see the same content served up previously if we want it to be. So this is what I have in cookie right now.

 campaign code:page id:result display

你可以看到,这将建立,如果有很多活动,每个广告活动的许多页面上使用。

And you can see that this will build up if there is a lot of campaign and each campaign is used on many pages.

在此先感谢!

推荐答案

如果数据库负载是一个问题,你可以当用户在网站上开始了他的会话获取个性化,然后将其存储在会话状态。这样一来,仅在第一页负载对数据库的调用。

If database load is an issue, you can retrieve the personalization when the user starts his session on the website, and then store it on the session state. This way, only the first page load will make a call to the database.

您可以在用户ID存储在cookie中。

You can store the user ID in the cookie.

记住的分贝坚持会话当用户更新他的preferences,并在一段时间后删除旧的数据库记录可能是太多,如果有很多匿名用户访问您的网站是个好主意。

Just remember to persist the session in the db when the user updates his preferences, and deleting old db records after a while might be a good idea too if that many anonymous users will visit your website.

这篇关于有效的方式来使用ASP.NET +饼干匿名个性化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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