I can say that SharedObjects are the Full extension for normal Browser cookies, because it has features that are not in normal browser cookies.
The Basic meaning is same “They are used for storing client data on the client Harddisk”.And access them through out the site when live or access them on next visit.
As the Syntax differs:
public var mySO:SharedObject;
mySO = SharedObject.getLocal(“mydata”);
here mydata is the file used to store the user data on the client machine and they reside at
a particular path that is hidden.[ see Flex help file for Path]
The SharedObject class has some methods in it for storing user data.
getLocal() -> creates the file or copies the reference of the file if created.
and to store data.
mySO.data.visitDate=”TodayDate”;
As i said its “Full extension for normal Browser cookies”,its meaning is it can store data
of Three DataTypes– Date,String,Array.
mySO.flush();
flush() —> its used for writing the values in to the file.And the SharedObject files are
Stored in the .sol format.
mySO.clear();
clear() –> delete the file.[.sol]
Explore the Class.
Posted by kumargandhi 