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
4 Réponses
+ 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 ;)
+ 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)
0
Store it in database using SQL
0
@visph @Mashan said "permanently"