访问Flex的浏览器Cookie [英] Accessing browser cookies from Flex

查看:169
本文介绍了访问Flex的浏览器Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为私人vBulletin网站构建Flex小部件,并且Flex小部件需要访问vBulletin服务器上的XML文件以显示数据。

I'm building a Flex widget for a private vBulletin site, and the Flex widget needs to access an XML file on the vBulletin server in order to display data.

出于安全考虑,XML URL需要在来自Flex的URL请求中传递的bbsessionhash cookie中的值。 Flex小部件将嵌入到用户已登录的私有区域中,因此Flex请求将来自与之相同的网站。

For security reasons, the XML URL will need to have the value in the bbsessionhash cookie passed along in the URL request from Flex. The Flex widget will be embedded in the private area that the user has logged into, so the Flex request will be coming from the same website the cookie is from.

有任何方式直接在Flex中访问cookies?我宁愿不使用ExternalInterface从JavaScript中获取cookie数据,因为它可能会有点混乱(模板是由一个完全不同的开发团队开发的)。

Is there any way to access the cookies directly within Flex? I would prefer not to use ExternalInterface to grab the cookie data from JavaScript, as it could get a little messy (the templates are developed by a completely different dev team).

推荐答案

我从来没有尝试过,但这个库可能只是做的伎俩。

I have never tried this, but this library might just do the trick.

这篇关于访问Flex的浏览器Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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