【问题标题】:How to get the Cookie of different domain in a web browser using vb.net如何使用 vb.net 在 Web 浏览器中获取不同域的 Cookie
【发布时间】:2013-06-13 13:10:00
【问题描述】:

我有一个 Web 应用程序运行两个不同的域,例如 example.com 和 test.example.com。我为 example.com 创建了一个 cookie。我在 Firefox 中看到浏览器创建了一个名为“example.com”的文件夹其中包含cookie。但是当我通过test.example.com时,它会创建一个名为“test.example.com”的新cookie文件夹。是否可以在“test.example.com”中获取“example.com”文件夹的cookie。 com”文件夹(如果cookie存在于“example.com”中,我的意思是当我通过“test.example.com”时)。请让我知道是否有任何方法。在此先感谢。

【问题讨论】:

标签: asp.net vb.net http cookies


【解决方案1】:

你可以反过来做。使用.example.com 域创建test.example.com cookie。

见:Can subdomain.example.com set a cookie that can be read by example.com?

【讨论】:

    猜你喜欢
    • 2012-10-28
    • 1970-01-01
    • 2020-09-22
    • 2018-06-11
    • 2010-11-06
    • 2013-05-01
    • 2012-07-11
    相关资源
    最近更新 更多