[英]Need to update my cookies from flash cookies but without refreshing the page
I am storing some information into Flash cookies. 我正在将一些信息存储到Flash cookie中。 when anyone hitting a page it first check for m/c cookie and then it checks for flash cookie.
当有人点击页面时,它首先检查m / c cookie,然后检查flash cookie。 If the flash cookie has some extra information it is writing on the m/c cookie but it is
refreshing the page again, which in-turn increasing my page count/ view.
如果Flash Cookie包含一些额外的信息,它会在m / c Cookie上进行写操作,但会再次刷新页面,这反过来又增加了我的页面数/浏览量。
I want my m/c cookies to be updated by flash cookies as soon as user gets the response. 我希望用户收到响应后立即通过Flash cookie更新我的m / c cookie。 I
don't want to refresh the page again which is causing by flash cookies.
我不想再次刷新由Flash Cookie引起
的页面 。
通过javascript编辑/更新您的cookie。
Check the Actionscript docs and read about the ExternalInterface which will allow you to communicate with Javascript. 查看Actionscript文档,并阅读有关ExternalInterface的信息,该接口使您可以与Javascript进行通信。 Practically, whenever you want to access a JS function from AS3 , you could use ExternalInterface to call it.
实际上,每当您想从AS3访问JS函数时,都可以使用ExternalInterface对其进行调用。
It's not clear in your description what causes a page refresh, reading a Flash cookie wouldn't cause that. 您的说明中尚不清楚是什么导致页面刷新,而读取Flash cookie不会导致页面刷新。 Send us more information if ExternalInterface doesn't solve your issue.
如果ExternalInterface无法解决您的问题,请向我们发送更多信息。
I have this question as well... Flash runs client side, which means, in order to set a PHP session, server-side, you need atleast run the flash application in the client to get the flash cookie value and than pass that value to php. 我也有这个问题... Flash在客户端运行,这意味着,为了在服务器端设置PHP会话,您需要至少在客户端中运行Flash应用程序以获取Flash Cookie值,然后传递该值到PHP。 That is what is meant with the refresh.
这就是刷新的含义。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.