跨域 Flash 本地共享对象(LSO 又名 Flash Cookie)是否可能
我找到了几种从 JavaScript 创建 Flash LSO 的解决方案(例如: http://www.nuff-respec.com/technology/cross-browser-cookies-with-flash) 如果页面 (www.hostA.com/index.html) 和 .swf 文件来自同一站点,则一切正常。
不,我正在尝试加载 www.hostA.com/index.html 页面,其中包括 www.hostB.com/flashcookie.swf (不同的站点)。但是我无法读取或存储 LSO。
我尝试了几种配置(crossdomain.xml、Security.allowDomain("...") ),但没有任何效果。
这种对 LSO 的跨域访问可能吗?
由第 3 方提供的基于 Flash 的广告能否在我的光盘上保存 LSO?
谢谢 -斯蒂芬
I found several solutions for creating Flash LSOs from JavaScript (for example: http://www.nuff-respec.com/technology/cross-browser-cookies-with-flash )
If Page (www.hostA.com/index.html) and the .swf file are from the same site, everything works fine.
No I'm trying to load the page form www.hostA.com/index.html, which includes www.hostB.com/flashcookie.swf (different sites). But then I cannot read or store the LSO.
I have tried several configurations (crossdomain.xml, Security.allowDomain("...") ), but nothing works.
Is this kind of cross domain access to a LSO possible?
Can a flash based advertisement delivered by a 3rd party save a LSO on my disc?
Thanks
-stephan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想这是不可能的,至少在 adobe 文档中他们说你不能:
I guess it's not possible, at least at adobe docs they say you can't:
我认为最有用的信息在这里:
http://magp.ie/ 2010/10/15/javascript-library-to-manage-flash-local-stored-objects/
I think most useful information is here:
http://magp.ie/2010/10/15/javascript-library-to-manage-flash-local-stored-objects/