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

30th Apr 2017, 4:37 PM
charles
4 Respuestas
+ 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.
30th Apr 2017, 4:42 PM
Jeth
Jeth - avatar
0
I'm new to coding can you please explain me in details. Like how to create them and the codes
30th Apr 2017, 4:45 PM
charles
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.
30th Apr 2017, 4:53 PM
Jeth
Jeth - avatar
0
OK thanks
1st May 2017, 1:51 AM
charles