How to store user data permanently in a web app? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to store user data permanently in a web app?

I have a to-do list web app designed in js. there is no database used. I want to save the user input data PERMANENTLY and to be saved in a .JSON or .XML file. so it appears when I open the page again. any examples of code will be great

5th Aug 2017, 4:21 PM
Mashan Shaluka1
Mashan Shaluka1 - avatar
4 Answers
+ 2
You're not mandatory to use a database, but you are mandatory to handle real permanent data storage on server side... (you can use cookies or new html5 webstorage -- wich is always user side stored as cookies -- but it's a few limited: no data sharing between browsers, easily user erasable/wastable... limited size even if much more than older cookies, not always available -- on android webview as example: not available in app playgroud, but working in web playground :P) Anyway, database will be widely more efficient than file when data size grown ;)
6th Aug 2017, 4:23 PM
visph
visph - avatar
+ 1
@Kartikey Sahu: Yes, and? I was talking about the only way to store data on user side by specifying that cannot really considerate ar 'permanent' storage, at least in a certain meaning of 'permanent': regarding the purpose, it could be enough 'permanent' ^^ And I mainly and fistly said that handle storage on server side was mandatory (but not database)
6th Aug 2017, 4:45 PM
visph
visph - avatar
0
Store it in database using SQL
5th Aug 2017, 6:04 PM
Kartikey Sahu
Kartikey Sahu - avatar
0
@visph @Mashan said "permanently"
6th Aug 2017, 4:38 PM
Kartikey Sahu
Kartikey Sahu - avatar