看看这种情况:

  1. www.websitea.com 显示 img 标记,其中包含 www.websiteb.com/image.aspx的 src 属性?id = 5 style =" display:none"
  2. www.websiteb.com 除了名称为 referrer 且值 5 (已创建)的cookie外,还会返回清晰图像服务器端来自验证的查询字符串。)
  3. cookie是否会在域 www.websitea.com www.websiteb.com 上创建?

    目前我确定一系列带有查询字符串的重定向并实现跨域cookie,但我之前想出了这个图像的想法。我想我也可以使用 iframe

    谢谢!

有帮助吗?

解决方案

退房: 跨域用户跟踪

有人提到使用1x1图片进行跨域跟踪。

其他提示

将为websiteb.com创建cookie。

Cookie是根据对websiteb.com的请求创建的,所以是...... cookie转到websiteb范围

你走在正确的轨道上。正如其他人所提到的,将为websiteb.com创建cookie。

要解决IE问题,您可能需要制定一项紧凑隐私政策。

从这里开始: http://msdn.microsoft.com/en-我们/ library / ms537342.aspx 和谷歌其余的。

好看好看。在所有浏览器中测试过。为IE6添加了一个P3P标签,但不确定是否有必要。

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        Response.AddHeader("P3P", "CP=""CAO PSA OUR""")
        Dim passedlocalizeID As String = Request.QueryString("id")
        Dim localizeID As Integer
        If passedlocalizeID IsNot Nothing AndAlso Int32.TryParse(passedlocalizeID, localizeID) Then
            Dim localizer As New Localizer
            localizer.LocalizeTo(localizeID)
        End If
    End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Redirecting . . .</title>
    <meta http-equiv="refresh" content="0;URL=/" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    </div>
    </form>
</body>
</html>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top