English 中文(简体)
现场拯救访问者信息
原标题:Sitecore save visitor information
  • 时间:2012-05-23 15:08:08
  •  标签:
  • sitecore

我新到Sitecore。我有一个关于为Sitecore的访客节省一个价值的问题。我想为访问者节省一个价值,下次访问者来到网站时,我想检索这个价值。

我试图使用 tracker. Visitor. Tag, 但是这段会话已经范围过。 下次访问时标签都不见了 。

能否将访问者的具体信息保存到 " 遗址核心 " 数据库?

谢谢!

最佳回答

对于非认证用户来说,没有特别关于网站核心数据库的特别信息。由于您的用户是匿名的,所以把它视为一个标准的 ASP.NET 功能,所以您可以使用 < 强势 > session 或 < 强势 > cookies 来维持某些东西。 网站核心数据库真正存储了由 CMS 驱动的内容, 必要时, 核心数据库中特定用户的数据, 但是这些用户是经过认证的用户( 在 ASP.NET 成员端上建 )。

需要考虑的是, 您如何使用这些信息( 也许您可以在更高层次上详细描述您试图完成的内容? ) 。 我之所以这样说, 是因为如果您用用户特有的数据更新一个组件, 如果组件缓存了“ 站点” 中的 HTML 输出, 除非您按您认为“ 唯一用户” 的确切标准缓存, 否则它不会改变每个用户 。 这将需要一些额外的工作来缓存和“ 帕拉姆斯的 Vary ”, 这些参数是您的自定义标准 。

例如:

  1. Say you have an existing sublayout control which currently caches and varys by data source.
  2. You want to update the code to also display a user-specific value as deemed by a cookie on the user s machine. The specificity of the user is now deemed to be based on this cookie.
  3. Now you also need to update the sublayout to both vary by data source and additionally, vary by the cookie key to separate them from being unique to others.
问题回答

暂无回答




相关问题
How do I hook the Save event in Sitecore Page Editor?

I m creating a custom edit control for my content authors to use in the Page Editor. Of course this means I want my control to save data to an Item when the user clicks on the Save button. How is ...

Passing Parameters to a Sitecore Sublayout

I ve done this before with a web control, but I can t seem to get it to work with a sublayout. On the Presentation Details for a particular item I m assigning my Sublayout and then in the additional ...

Lucene.Net Search List

I m using Sitecore and have a multilist field I d like to use Lucene to search on. The problem I have is that the field is a pipe-delimited list of actual values and there could be between 0 and an ...

Test for Descendant Items

I am trying to create a simple inventory of items in a Sitecore website using an xslt. The problem is that I can t find a way to test whether an item has descendant items beneath it. It s easy to ...

Sitecore set/change default language from en

Can anyone recommend the best way to change the default language in Sitecore 6.1. On a fresh install, the typical language for all items is en English, witha nice little USA flag and all. However, ...

热门标签