In a web application, is there any way to check the requested user has got admin privileges.
Is it possible? Can you suggest one method?
For example: a front-end user requests a page in my application. I want to know whether the user that made the request has admin privileges in his client machine. I have to check whether he is logged in with an admin privileged account in the system.
I need the privileges of logged in user to the system not to my application , my application doesn’t have a login. One user just request my home page or any other page and i just want to know that user is logged into his PC with an admin account or not?
I’d suggest the membership provider for you.
Read this article for more information.
EDIT:
After reading some given answers and other questions, read this article (provided by Abbas).
Especially look at the chapter “Role Management, User Identity, and Membership”.
This explains the difference between windows authentication (login with your windows account when on an intranet) and forms authentication (login with username and password)