【问题标题】:Firefox adds google analytics data(utm) into cookieFirefox 将谷歌分析数据(utm)添加到 cookie 中
【发布时间】:2012-12-24 02:40:25
【问题描述】:

我有一个客户端应用程序作为 Unity WebPlayer 运行,Unity WebPlayer WWW 模块在浏览器上使用类似 ajax 的请求。

我做了一个简单的 http 请求,首先从 responseheader 接收 Set-CookieSET-COOKIE 并将该信息添加为 Cookie 在进一步的请求标头中。

在 Chrome 中一切正常。

但在 Firefox 中,当我添加 Cookie 信息时,Firefox 在发送前会在 cookie 中添加更多信息。它添加了 __utma->__utmz 数据,即 Google Analytics 跟踪 cookie 信息。

我猜这个添加会搞乱整个 cookie 系统。因为之后,在每个响应服务器中不断发送 Set-Cookie 而没有 __utma->__utmz,我的客户不同意。

我在 Firefox 上只有 Firebug 和 Firecookie 插件。

更新:它在 IE 上也可以正常运行,就像 Chrome 一样。

火狐 Chrome

【问题讨论】:

    标签: php http firefox cookies


    【解决方案1】:

    这是一个单独的 cookie。

    您的服务器应该仍然能够解析并使用它感兴趣的 cookie,并忽略所有其他的。

    【讨论】:

      猜你喜欢
      • 2017-05-08
      • 2017-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多