is it possible to value store cookies in Flash or Flex?

前端 未结 3 1979
你的背包
你的背包 2021-01-03 09:47

In PHP there is a setcookie function based to store it. In Flash is it possible ?. If it is possible then how? I want to store value.

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 10:25

    Yes. Flash applications can store up to 100kb of data (by default) on a user's computer. This is stored in Flash cookies (Separate from browser cookies). Users can adjust how much applications can store by right clicking on a flash application and going to settings.

    Here is the SharedObject API for AS3: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html

    You can get more info by googling "Flash SharedObject"

    Make sure to be prepared to handle cases where a user does not let you put data into SharedObjects. This is becoming a popular trend among tech-savy users that are concerned about their privacy.

    Good luck!

提交回复
热议问题