Preventing Access Certain Users From Accessing Certain Directories

patelajk
patelajk used Ask the Experts™
on
Hi

I have a web application which uses forms authentication. We have setup our own role based security around it .

The role security is quite simple we have 3 tables: one which stores the user details, one which stores the different roles we have and one which matches the roles to the the user.

What I am trying to do is stop certain users from accessing everything accept a directory I specify but allow all other users access to everything.
E.G. Say We have 5 directories, Folder_1 - Folder 5

User_1 will have access to Folders_1 - Folder_5 (as in all of them)
However
User_2 will have acess to only Folder_1 and nothing else.

Any ideas on how to do this

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Analyst Programmer
Commented:
you could put a web.config in each folder ans set the URL Authorization Rules for each folder
check this
http://www.asp.net/LEARN/security/tutorial-07-vb.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial