c# - Restricting access to a directory -



c# - Restricting access to a directory -

i have subfolder in project. want users roles come in it.. how accomplish while redirecting user login page..this have far in webconfig in subdirectory

(i have web.config in virtual directory of project)

<?xml version="1.0"?> <configuration> <system.web> <authorization> <deny users="?"/> <allow roles="moderator"/> <deny users="*"/> </authorization> </system.web> </configuration>

edited, in root web.config, add together bottom. no need sec web.config then.

<location path="subfolder"> <system.web> <authorization> <deny users="?" /> <allow roles="moderator"/> </authorization> </system.web> </location>

c# asp.net visual-studio-2010 security

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -