In my web application I have a collection of pages that are of administrative maintenance in a folder called admin and a collection of pages that are of the nature of making orders, called orders.
I want to use "forms" authentication since I will need to store user names and passwords in a database since there will be lots of registered users with different levels of authorization.
These are some of the entries in my web.Config file:
I want to deny all users except the ones that have authorization to the admin folder. And all the ones that have authorization to access the admin folder will have access also to the whole site.
How can I authenticate users but yet authorize only certain authenticated users to access pages in the admin folder?
I want to use "forms" authentication since I will need to store user names and passwords in a database since there will be lots of registered users with different levels of authorization.
These are some of the entries in my web.Config file:
Code:
<authentication mode="Forms" />
<forms name=".ASPXAUTH"
timeout="30"
path="/"
loginUrl="login.aspx"
protection="All"/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
I want to deny all users except the ones that have authorization to the admin folder. And all the ones that have authorization to access the admin folder will have access also to the whole site.
How can I authenticate users but yet authorize only certain authenticated users to access pages in the admin folder?