Saving user changes to the site | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Saving user changes to the site

Hi all! I really want to create a website where each user will have the opportunity to make changes to the code in their personal account: add elements, text, save it all, so that the next time they log in, everything will be displayed as before. To implement this, I need to study :) But there is a problem - it’s not very clear to me what exactly to study. By what means can you save page elements depending on the user profile? Please tell me which direction to go?

27th Jan 2024, 12:02 PM
W G
W G - avatar
5 Answers
28th Jan 2024, 9:34 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Thank you!
30th Jan 2024, 10:09 PM
W G
W G - avatar
0
You can save changes in cookies, in a database, in a file and so on.
27th Jan 2024, 12:05 PM
Ausgrindtube
Ausgrindtube - avatar
0
Cookies can be cleared - this will not work. The database is unlikely to save page elements for each user if there are an infinite number of these elements, let’s say, take the Sololearn application as an example - we can create records here, edit them, create our own code that others will see - which database saves all our actions and created objects? how to implement this?
27th Jan 2024, 12:09 PM
W G
W G - avatar
0
Please specify in more detail how to save it to a file? Through ajax requests?
27th Jan 2024, 12:18 PM
W G
W G - avatar