Flash记录器不包括Firefox中的Cookie [英] Flash recorder not including cookies in Firefox

查看:152
本文介绍了Flash记录器不包括Firefox中的Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候。

我遇到一个问题,那就是一个flash播放器在运行firefox的时候不包括HTTP cookie。这些都包括在浏览器中运行。



我想知道是否有人知道如何强制闪存包括cookie与闪存服务器通信?



背景资料



我们有连接到red5服务器的闪存记录器。这些连接通过提供池地址的负载均衡器打开。池中有多个服务器。



记录器使用RTMPT协议发送数据。这通过HTTP发送RMTP(这允许防火墙穿越)。为了确保数据到达正确的服务器,我们使用基于Cookie的负载均衡。如果存在某个cookie,则负载均衡器会将连接指向正确的服务器。

当用户通过Web浏览器登录到站点时,设置此cookie。当与服务器通信时,Flash播放器将这些cookie包含在RTMTP HTTP请求中。这确保RMTPT连接打开到正确的服务器。

使用fiddler,我抓住了一些流量(从IE)来显示我的意思:


POST http:// hostname / idle / 31283773/0 HTTP / 1.1

Content-Type:application / x- fcs

用户代理:Shockwave Flash

主机:主机

内容长度:1

Connection:Keep-Alive

Pragma:no-cache

Cookie:JSESSIONID = sessionid;目标服务器=目标服务器的价值



不幸的是,当使用Firefox时,cookies不包括在服务器:

POST http:// 主机名 / idle / 31283773/0 HTTP / 1.1

Content-Type:application / x-fcs

用户代理:Shockwave Flash

主机:主机

内容长度:2030

连接:Keep-Alive

Pragma:no-cache



脚本并通过JavaScript / HTML初始化。我们使用NetConnection / NetStream来与服务器进行通话。

我可以访问HTML / JavaScript中的目标服务器ID,它载入了闪存记录器,但对于我的生活我无法弄清楚在发送RTMPT数据时如何包含cookies,甚至是这样的事情是可能的。

我想知道什么



任何人都可以告诉我:

1 - 是否有可能指示闪存记录器在与闪存服务器通话时包含某些cookie?他们会自动包括在运行通过IE浏览器。

2 - 如果是这样 - 谁能告诉我怎么样?

我花了几个小时希望这里有人可能有一个想法:-)


感谢您的时间,如果您需要更多的信息,请让我知道。

解决方案

你看过为什么cookie不被发送吗?这是不是因为你正在使用负载平衡和域正在改变? Firefox只允许相同的域访问相同的cookie。

只是一个想法,希望它有帮助。



皮特


Greetings.

I have a problem where a flash player, when run through firefox, is not including the HTTP cookies. These are included when run through internet explorer.

I want to know if anyone knows how to force flash to include cookies when communicating with a flash server?

Background Information

We have a flash recorder which connects to a red5 server. These connections are opened through a load balancer which offers a pool address. There are multiple servers in the pool.

The recorder sends data using the RTMPT protocol. This sends the RMTP over HTTP (this allows firewall traversal). To ensure data arrives at the correct server we used cookie based load balancing. If a certain cookie is present the load balancer directs the connection to the correct server.

This cookie is set when the user logs into the site through thier web browser. The flash player then includes these cookies in the RTMTP HTTP requests when communicating with the server. This ensures the RMTPT connection is opened to the correct server.

Using fiddler, I grabbed some of the traffic (from IE) to show what I mean:
POST http://hostname/idle/31283773/0 HTTP/1.1
Content-Type: application/x-fcs
User-Agent: Shockwave Flash
Host: host
Content-Length: 1
Connection: Keep-Alive
Pragma: no-cache
Cookie: JSESSIONID=sessionid; target-server=target-server-value

Unfortunately, when using firefox, the cookies are not included in the traffic to the server:
POST http://hostname/idle/31283773/0 HTTP/1.1
Content-Type: application/x-fcs
User-Agent: Shockwave Flash
Host: host
Content-Length: 2030
Connection: Keep-Alive
Pragma: no-cache

The player is written in action script and initialized through javascript/HTML. We use NetConnection / NetStream to speak to the server.

I have access to the target server ID in the HTML / javascript which loads the flash recorder but for the life of me I cannot figure out how to include the cookies when sending the RTMPT data, or even is such a thing is possible.

What I'd like to know

Can anyone tell me:
1 - Is it possible to instruct the flash recorder to include certain cookies when speaking with the flash server? They're automatically included when running through IE.
2 - If so - can anyone tell me how?

I've spent a few hours googling for solutions with no luck so far - hopefully someone here may have an idea :-)

Thanks for your time, and if you need any more information please let me know.

解决方案

Have you looked at why the cookies arent being sent? Is this not becuase you are using load balancing and the domain is changing? Firefox only allows the same domain to access the same cookies.

Just an idea, hope it helps.

Pete

这篇关于Flash记录器不包括Firefox中的Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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