I am using the SQL adapter
for user login in mobilefirst server.
How can i store user login credentials permanently in my hybrid app?
Once the user exit the app need to keep the login details in app.
My example code:
// Global variables
var userid;
var useremail;
function loginsuccess(result) // on success function from SQL adapter
{
var user = result.invocationResult.resultSet;
userid = user[0].playerID;
useremail = user[0].email;
$.mobile.changePage("#gamepage"); // login to admin page
}
In this code how can i keep the user information after exit from hybrid app.(Once the user login don't ask the user to login again).