Answer the question
In order to leave comments, you need to log in
How to implement user identification in WEB graphics editor?
Good day. During the educational process, it is necessary to develop a WEB application, namely a simple graphical editor with user authorization. Accordingly, each user should see his own project, not someone else's.
The question is: how to implement user identification and give him only his projects?
I assume that when creating graphical objects, they will be assigned identifiers corresponding to certain users. Those. the user is logged in to the application, then his identifier is compared with those present in the database and, if it matches with the existing one, display the corresponding graphics.
Answer the question
In order to leave comments, you need to log in
Yes you are right. An authorized user has his own identifier in the database - this is id or uuid. When a user creates a file and saves it to your server, a record is created in the database with the identifier of the owner of the file. Then, when you log in, you get all its files and that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question