How to delete all created localSharedObjects in AS3?
-
21-12-2019 - |
Question
I'm working on a Flash website and would like to delete all localSharedObjects (aka Flash cookies) that got created from that SWF domain space. (basically it's the user session)
I found mySharedObject.clear();
, but that function only deletes one localSharedObject and not all of the assigned domain.
How to delete them all?
Solution
You got to read all sharedObjects and then delete them.
sharedObject1 = SharedObject.getLocal("mySharedObject1");
sharedObject2 = SharedObject.getLocal("mySharedObject2");
...
sharedObject1.clear();
sharedObject2.clear();
...
I don't think that it is possible in any other way in flash.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow