Can someone explain how users accounts works on webpage?
www.website.com/profile?uid=15636373282
or
www.website.com/profile/15636373282
As I know each user gets unique uid.
Does website creates for each user profile folder on server to store user profile webpage and pictures, videos?
I know users name and password are stored in database, but I think that store user profile page ,pictures, videos in database, its insaine.
Can someone help me to understand? thank you
Any user profile has 2 parts: the profile text-fields and media data.
Text fields (id, name, desctption, date of birth, etc) are being stored in database;
Basically media data (avatar image, another files) are being stored on disk in some folder and user id references to this folder.
Yes, the site creates this folder. Media files should not be stored in a database!
The "profile webpage" is absctract concept. Site usually generates this page at runtime using the above parameters from database, and media-data(insert images links to page html for example)