flashactionscriptlocal-storagelocal-shared-object

Do Flash Locale Shared Objects behave like cookies?


Cookies are sent to the server per each request making them a slow choice for data storage. However, what's the case with Flash's LSOs? Are they only script accessible and not sent to the server?

If it matters, I'm looking for a way to store data on the client using Flash and performance does matter here (as well as the size limits). I know that the default size limit is 100 kB for LSOs.


Solution

  • actualy you can write the data to disk whenever you want by using flush(minDiskSpace:int = 0) where you can specify the size that it will require.

    If you want those data stored on an FMS just use getRemote() instead of getLocale();