Forms Authentication across directories

G

Guest

I have an application on my local machine that has a 'Manager' folder which
holds the content management/admin pages to the site. I'd like to administer
forms authentication for the pages in this folder alone. Do I have to make
this a new application in IIS? If so, can I use user controls in the main
application?

Thanks,
Nathan
 
G

Guest

You can use <location> tag in config file to specify authorizatino setting
for specific folders. For example you can set deny unauthenticated user
persmission for your admin page alone like this,

<location path="adminwebfolder" allowOverride="true"
inheritInChildApplications="true">
<system.web>
<authorization>
<deny users="?"/>
<!-- Allow all users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>

For more details, refer this link
http://www.dotnetbips.com/displayarticle.aspx?id=117
 

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

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top