After reading this question:
One possibility is using flash cookies : (>
Flash)
You can store more data per cookie (up to 100 kb) shared in all browsers, More likely to identify the machine specifically, clearing the browser cookies does not remove flash cookies.
You have a small (hidden) flash for reading and writing. M will need to make.
I tried to know if there is something like that already done, so I will not have to change the wheel again so far, no fate (maybe I can search Except for
, I have to stop the user from answering a quiz several times for its use, but uses it in the future, it may be that the trolls are banned. Go.
Does anyone know of an open source library that does this and allow me to log in via javascript?
Alerts: I do not know the flash and I do not own a license.
Edit: You can do this by using it. It is evil but works.
what rmeador said, and in getting you started To help, you will need to use two sections in FLEX3 API, and
Shared Object will store and retrieve data from the client computer and external interface will allow your actions to communicate with your javascript.
The use of shared objects is simple
private var shared object: SharedObject = SharedObject.getLocal ("myCookie") ) ; SharedObject.data.DATA_FOR_THE_COOKIE = Data;
Recovering data from a shared object is just as easy to make sure that the size of the shared object is greater than 0 (make sure that the shared object is present) and only through the data fairness of the shade object See the proper name.
if (sharedObject.size & gt; 0) // data access with cookies - & gt; SharedObject.data.DATA_FROM_THE_COOKIE;
In the SharedObject you will need to use the external interface to pass the data stored in your JavaScript.
Let's say that you have a javascript function to get variables
retrieve the function vars (vars) {// do something with wars}
You will use
ExternalInterface.call ("retrieveVars", DATA_ITEM_1, DATA_ITEM_2, ...) to call this function from actionscript;
It's easy.
Please note that this technique will not work if the client's Flash Player's storage setting is set to 0, or if the client browser does not have ActiveX or NPRuntime
Comments
Post a Comment