Page 1 of 1

Login and multitasking

Posted: Thu Jan 08, 2015 3:44 pm
by murad

I know that appery DB don't support offline log-in, If the user logged in and didn't logout just click the ipad home button is it going to keep the session in the multi tasking if the app pressed again ?


Login and multitasking

Posted: Fri Jan 09, 2015 8:42 am
by Ihor Didevych

Hi Murad,

There is no DB that supports offline login, you can't login if you are offline.

Your app is all that you implement in it. If you implemented "saving session" somewhere in the LSV then it will save it. And once you online you can use it in requests. But if you implemented login only then it will login in online mode only.


Login and multitasking

Posted: Fri Jan 09, 2015 6:09 pm
by murad

Thanks Ihor , is there any toutorial for implementing this ? Saving the sessiontoken in local storage


Login and multitasking

Posted: Sat Jan 10, 2015 11:02 am
by Alena Prykhodko

Hello,

You can map session token to storage variable, for example, http://devcenter.appery.io/tutorials/....

Also, the standard local storage API is used to save or get the values:
pre
localStorage.getItem('name');
localStorage.setItem('name', 'value');
/pre
http://devcenter.appery.io/documentat...