Maybe I'm a bit slow, but I still can't figure this out. Let's say, for instance, that our game has four different levels (layouts). We want a way for the person playing who has gotten to level 3 to be able to go to 7-11 or hang out with friends and not have to come back and start over at level (layout) 1 but continue where they left off at level (layout) 3.
So how, utilizing these AJAX requests, php and subsequent sql, do we save which layout they were on and other pertinent info?
I know we would need a way to create a php login, send the user's info to a php login script, update the sql database and maintain a session.
We would also need to save the last layout (level) into the sql database for that user via a php script, then call that data into our html5 application from the database through php and into our game then have our game render the proper level (layout).
So my question is, how would that be done?