Hi I'm creating a application where there are different users like admin and others. I want to log in as admin and hav all the previlages to it and when login as others it should have only minimum previlage. I'm doing it C#.net. can any one give me the code or idea how to do it..... Thanks in advance.....

Recommended Answers

All 2 Replies

Hello vincezed,
Your question is very interesting and very general. It is depending upon many things.
Anyway you have to set policy for every role. You application must have userclass and your application should check policy....

Good luck

In Database Management we have something like security level for each user,
the number 0 represents an ordinary member, 99 is administrator.
the webpage will redirect the user to a
"member's area page" or an
"admin's area page"
depending on the security level.

I hope this helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.