简体   繁体   English

Internet Explorer可以从Flash发送Cookie吗?

[英]Can Internet Explorer send cookies from Flash?

I have a webpage that embeds a flash widget that sends AJAX POSTs. 我有一个网页,其中嵌入了可发送AJAX POST的Flash小部件。 I use PHP to interpret these on the server. 我使用PHP在服务器上解释这些内容。

The problem is that Internet Explorer doesn't send the "Cookie" HTTP header from the requests generated in the Flash, so I'm unable to pick up my PHP session on the server. 问题在于Internet Explorer不会从Flash中生成的请求中发送“ Cookie” HTTP标头,因此我无法在服务器上接收PHP会话。

Chrome and FF do send the Cookie header from inside the flash. Chrome和FF确实从Flash内部发送Cookie标头。

I've tried the P3P headers and browser security settings changes. 我已经尝试过P3P标头和浏览器安全设置更改。

Does anyone know if this is possible within IE? 有谁知道这在IE中是否可行? I can't change the flash, so would have to be a browser setting, or ideally, some HTTP change... 我无法更改闪光灯,因此必须将其设置为浏览器设置,或者理想情况下必须进行一些HTTP更改...

If its a problem with IE you can probably fix it for yourself by installing the newest version of IE and Flash on your computer. 如果IE出现问题,则可以通过在计算机上安装IE和Flash的最新版本来自行修复。 Other people are probably going to have trouble with it however. 但是其他人可能会遇到麻烦。 I really don't know what you are talking about with "Cookie" header but I don't see why that would stop you from handling a request if it is getting sent. 我真的不知道您在说什么“ Cookie”头,但是我不明白为什么如果请求被发送,那会阻止您处理请求。 If you wanted to post the code that is handling the request that would probably be helpful. 如果您想发布处理请求的代码,那可能会有所帮助。

In reality, you probably shouldn't be using a Flash solution to handle your ajax requests. 实际上,您可能不应该使用Flash解决方案来处理您的Ajax请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM