Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 30-Apr-13 8:52am
v3

1 solution

There are a lot of material on web on this topic. Couple of them:
MSDN: Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication[^]
ASP.NET authentication and authorization[^]

If needed more, look here at CP itself.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900