简体   繁体   中英

html5 mobile app auto login

I've developed a mobile app using HTML5, jQuery and PHP. As of now, every time a user opens a app, he needs to enter username and password to login.

I would now like to provide auto login facility, which will directly take user to app without entering credentials.

What is to be done so that I can accomplish this thing in my app.

I think the easiest thing is to use localStorage so when the app loads, checks for that and send it to the serves. This is good if you have a web app that does not reload every time. While if you have an app that everytime you click it reloads the page, maybe is easier using a cookie, so the server can parse it. And log you in

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM