Hi guys, this is a very common question but i need your help. I have an application in which I want to create different roles like admin, manager, and use. First I want to check whether the user is authorized for the application of not and if yes then want to check according to its credentials what access do I have to provide to him.
What I have done is created different folders with pages. I created a login which is my default page. When a user enters their credentials, it checks with the database if it is present. Then it will redirect to the home page. Nw what I want is when a user enters login details, it will check whether it is a valid user or not. If not, they redirect to error page and if it is an authorized user, then check their role and give access to the pages. How can I do that?
Thanks in advance. If you want I will give you my code.