PHP form to log-in to Flash App
Is it possible to log in to a Flash app with a PHP log-in form? I was thinking it could work something like this:
- PHP form creates a new session
- connect to the user database, validate.
- store the log-in infor开发者_JAVA技巧mation in session variables
- load the swf
I think if you store your sessions in the database in an open format like JSON or XML then you can have your SWF app lod that data from the database. The SWF app should also be able to get the cookies from the broswer so you can find the cookie that stores the session name check the database, or file system if you keep it in there and then work magic from there.
精彩评论