Restricting access based on roles

A

Andrew Banks

I have some directory's in my web site which I only want to give users with
a role of "management" access to. I have assigned the roles allready.

Is it possible to control this using my web.config file?

My current web.config file contains the code below, which makes sure users
need to be logged in to access any files at all. I just want to add the
extra restrictions to this so only the "management" role can access
"directory1", "directory2" and "directory3"

<authentication mode="Forms">
<forms loginUrl = "Login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>

Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top