IE8在重定向后打开新窗口时会丢失Cookie [英] IE8 loses cookies when opening a new window after a redirect

查看:1119
本文介绍了IE8在重定向后打开新窗口时会丢失Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Internet Explorer 8测试版2.


  1. 客户端在 http:// alpha / foo


  2. 服务器通过重定向响应 http:// beta / bar


  3. a href =http:// beta / bar =nofollow noreferrer> http:// beta / bar


  4. 重定向到 http:// beta / baz 并设置Cookie


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


  6. 客户在 http:// beta /链接,无需cookie!


点击链接,则 正确传递。如果没有重定向,即使用户选择在新窗口中打开,cookie也会正确传递。



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



(编辑:我相信这是IE8 beta 2的一个错误,所以我有在IE测试版

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



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


松散耦合的Internet Explorer
(LCIE)是一种架构性的工作,
通过分离
组件和放松他们的
相互依赖:最显着的是,
尝试隔离互联网
资源管理器框架及其选项卡到
单独的进程。在Internet
Explorer 8中,这种隔离将带来
关于提高性能和
可扩展性,以及更强大的
方法来从
磁盘或系统故障。



I'm using Internet Explorer 8 beta 2.

  1. Client performs POST on http://alpha/foo

  2. Server responds with redirect to http://beta/bar

  3. Client performs GET on http://beta/bar

  4. Server responds with redirect to http://beta/baz and sets cookie

  5. Client performs GET on http://beta/baz including cookie

  6. Server provides response

  7. User selects "Open in new window" on a link in the page

  8. Client performs GET on http://beta/link, without cookie!

If in step 7 the user just clicks the link, the cookie is passed correctly. If there is no redirect, the cookie is passed correctly even if the user selects "Open in new window".

Is there a way to convince IE8 to pass the cookie in step 8?

(Edit: I believe this is a bug in IE8 beta 2, so I've raised it on the IE beta newsgroup. Workaround suggestions welcome.)

解决方案

I believe that IE8 uses a separate process for each window. If you're using session cookies, the new process will start with a fresh session and therefore won't be able to submit the session cookies received by the other process. Can you try using persistent cookies and see what happens?

From 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.

这篇关于IE8在重定向后打开新窗口时会丢失Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆