0

There is a way to write and get persistent data (i.e., that persists between page reloads and is accessible offline) in the browser using JavaScript or any client side language?

apsillers
  • 112,806
  • 17
  • 235
  • 239
  • 1
    You mean like `localStorage`? – tymeJV Jun 14 '13 at 13:41
  • yes, could be it! If I exit the page then return the data will be there? I need this.. thank you! – gabrielstein Jun 14 '13 at 13:43
  • Script on the page or as a plugin? – epascarello Jun 14 '13 at 13:44
  • I will explain what I need to do and if you can you give me the best way, I have a offline app, that the user needs to login, I need a place to store the username and password, to the user login by javascript. In the online app version the user login using mysql and php. – gabrielstein Jun 14 '13 at 13:47
  • 3
    Do not save credentials in local storage. Modern browser supply a password safe for users if the user wants to use it at all. A proper input tags will trigger that mechanism in browsers. – aggsol Jun 14 '13 at 13:49
  • 1
    @CodeClown -- Good info, didn't know about this. Just posted an answer on localStorage, deleted :) – tymeJV Jun 14 '13 at 13:51
  • So, any hints how can I do this? is it possible? – gabrielstein Jun 14 '13 at 13:54

0 Answers0