I want to create a flash swf file that will store a token in Local Shared Object. What do I need to do to read that token and look it up in the database on the back end? Is this possible at all?
here is a possible scenario:
- User visits my web page
- A token is generated on the server and stored in the database
- Token is then saved in LSO
- User leaves the site (maybe shuts down his computer) and comes back later
- Token is read, located in the database and the user is recognized (lets say that token is a foreign key that links to other user data stored in the db)
I researched this for quite a while and all I find is that flash can use LSO to store read data for flash movie... Does this mean that the data can not be accessed by the server?
Thank you!
Yes, it's possible but you need to see it as two different operations. On one hand you store & read a SharedObject, on the other hand you communicate with the server and query a database.
You could use ZendAmf server to communicate with PHP. You would be able to send the SharedObject data to PHP in order to make the database query, when the database returns a result , ZendAmf sends a response to Flash.
Check this Zend Amf video introduction by Lee Brimelow