Can I store values on my device for use in a later session? - Forum - Mobile - Progress Community

Can I store values on my device for use in a later session?

 Forum

Can I store values on my device for use in a later session?

This question is answered

I'd like to be able to store values like User and PW on the device, so the user doesn't have to type them every time.  I thought this was something that was added recently, but haven't been able to find it yet.

Thanks in advance for your help.

Verified Answer
  • You can use HTML5 local storage.

    localStorage.setItem('Name','Value');

    localStorage.getItem('Name');

All Replies
  • You can use HTML5 local storage.

    localStorage.setItem('Name','Value');

    localStorage.getItem('Name');

  • That will span multiple sessions?

  • Yes, it is stored on the device. We use it to store the server ip we are connecting to as well as other app setup info.
     
    Roger Blanchard
    Osprey Retail Systems, Inc.
  • Thanks Roger, I appreciate it.