0
Authentication and user roles
Need to know the codes to assign users in different category. Something similar to Netflix. When user loged in he should be assigned To business or general user
4 odpowiedzi
+ 1
You should first create database table for roles and assign user roles there. Then when user logs in your system you do query in database, read his role and set it in cookie or session or whatever way you want your code work.
0
I'm new to coding can you please explain me in details. Like how to create them and the codes
0
This is a too big thing to explain in short words. You should read about how to work with server-side language (PHP for example) and with SQL database. Try to complete Sololearn courses of PHP and SQL to get the idea.
0
OK thanks