gpt4 book ai didi

cookies - 重定向后打开新窗口时 IE8 会丢失 cookie

转载 作者:行者123 更新时间:2023-12-02 12:10:31 31 4
gpt4 key购买 nike

我使用的是 Internet Explorer 8 beta 2。

  1. 客户端在 http://alpha/foo 上执行 POST

  2. 服务器响应并重定向到 http://beta/bar

  3. 客户端在 http://beta/bar 上执行 GET

  4. 服务器响应并重定向到 http://beta/baz并设置cookie

  5. 客户端在 http://beta/baz 上执行 GET 包括cookie

  6. 服务器提供响应

  7. 用户在页面中的链接上选择“在新窗口中打开”

  8. 客户端在 http://beta/link 上执行 GET ,没有 cookie!

如果在第 7 步中用户只是单击链接,则 cookie 会正确传递。如果没有重定向,即使用户选择“在新窗口中打开”,cookie 也会正确传递。

有没有办法说服 IE8 在第 8 步中传递 cookie?

(编辑:我相信这是 IE8 beta 2 中的一个错误,所以我 raised it on the IE beta newsgroup 。欢迎提出解决方法建议。)

最佳答案

我相信 IE8 对每个窗口使用单独的进程。如果您使用 session cookie,新进程将以新 session 开始,因此无法提交其他进程收到的 session cookie。您可以尝试使用持久性 cookie 并看看会发生什么吗?

来自http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie

Loosely-coupled Internet Explorer (LCIE) is an architectural effort to improve the browser by separating its components and loosening their interdependence: most notably, it is an attempt to isolate the Internet Explorer frame and its tabs into separate processes. In Internet Explorer 8, this isolation will bring about improved performance and scalability, as well as more potent methods to recover from problems like disk or system failure.

关于cookies - 重定向后打开新窗口时 IE8 会丢失 cookie,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/179260/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com