02-28-2013 09:34 AM
I just started working on an app with webworks. It is sort of a social networking and discovery application. I managed to get the app to login using ajax, and now I need help in solving how to make the app remember who the user is everytime they login? And to carry their id/session across the app pages, so they can send messages and interact etc.
I thought of maybe returning the ID of the user and store it in local storage, then have it called everytime I want to post to the remote database with ajax.
I hope I made sense.
02-28-2013 12:39 PM - edited 02-28-2013 12:39 PM
Try with localstorage as a cookie
03-04-2013 06:09 AM - edited 03-04-2013 06:09 AM
Just remember, if the user deletes the app and you've stored the info in localstorage, he will lose his ID and all the history that goes with it, so depending on what you're doing, you might want to store that information off device.