I’m not sure of any good examples, but there are a couple of ways to do it.
One is to use the native.webPopup API. In this case you have a login.html file (or .php or .asp whatever you’re using) that you load into the web popup, let the login to the server and as part of the submission, a function in your app will get called back and you could take that response and determine if they are logged in.
If you want to keep them logged in, write a little file out to your documents area with their username and password and then if the file exists, read it, add the values as get parameters on the URL to your login page. Not the most secure, but you could obscure it if that’s a concern.
The other option is to use the the Async HTTP Request API. In a similar fashion you would have a page on your server that takes get or post parameters build your own Corona form using native.textFields to collect the login information, send it as a get or put request using the Async HTTp stuff to the server, return a response if it was successful or not and the call back routine can move on.
FWIW, I’m working on a game that I want to have some multi-player features going on and I will probably go the Async HTTP Request route. I’m going to set things up in a REST style API using PHP and MySQL on the backend and just set it up to return JSON objects and on a successful login, I’ll send back a session ID along with their data, score, etc. [import]uid: 19626 topic_id: 12908 reply_id: 47375[/import]