sitecore - 设置 Sitecore DMS Global cookie 的过期时间

标签 sitecore dms

我目前正在开发 Sitecore 7.2 解决方案,客户询问我们是否可以更改全局分析 cookie“SC_ANALYTICS_GLOBAL_COOKIE”的过期时间。我们可以看到它持续了 10 年,这很奇怪,因为 Sitecore 文档规定它应该是一年。

除了 10 年与 1 年之外,我还寻找答案,但没有找到任何答案。我还进行了配置/反编译任务,但还没有找到保存 cookie 的行。

所以我的主要问题是:是否可以调整全局 cookie 的持久时间?

对于任何能够详细说明文档(1 年)与现实(10 年)之间的差异以及为什么使用这看似疯狂的 10 年时间的人,我们将给予奖励。

最佳答案

如果有人来寻找有关 Sitecore 9+ 的信息,您现在可以通过补丁文件配置 cookie 的过期时间。

Analytics cookie lifetime

File: c:\path\to\sitecore\root\App_Config\Sitecore\Marketing.Tracking\Sitecore.Analytics.Tracking.config

Determines the lifetime of the tracking cookie (SC_ANALYTICS_GLOBAL_COOKIE) in hours. The default value is 87600 hours (10 years).

<setting name="Analytics.CookieLifetime" value="87600" />

来自文档:https://doc.sitecore.net/developers/xp/tracking-and-session/tracker/configuration.html#analytics-cookie-lifetime

关于sitecore - 设置 Sitecore DMS Global cookie 的过期时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28715254/

相关文章:

mysql - 如何在 AWS DMS 中为源数据库设置时区?

amazon-web-services - AWS DMS 验证失败

mysql - aws DMS 仅复制更改错误

web-services - Sitecore:从 Field 值以编程方式解析 Url

amazon-web-services - 用于将数据从 ec2 迁移到 rds 的 cloudformation 模板

content-management-system - 帮助选择 Alfresco 或 Nuxeo for DMS

Sitecore 索引重建实践

c# - Page.Header.Controls.Add(control) 将控件添加到 <body> 而不是 <head>

c# - Sitecore - 在核心数据库中存储图像

c# - 如何在 sitecore 中获取媒体项目详细信息?