I'm developing a Flash app where users will be able to save their settings on my server (as XML from the Flash app). Handling the parsing/creation of the XML within Flash is no problem.

So I need a script that: 1) reads a user cookie (and allows for login, with an autofill option if the cookie is recognized), and then returns the XML code to the Flash app.

Is there any package with the PHP/JavaScript/AS3 hooks already put together for such a thing? Anything with MOST of these parts?