How to use ASP.NET Forms authentication on more than one directory?

M

M

I am already using Forms Authentication to protect a directory in my ASP.NET
application. I want to protect another directory.

I added something like:
<location path="another_directory">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

The problems are:
1. When browsing to "another_directory" I get redirected to the login Web
page of the "first" directory. I want "another_directory" to have its own
login Web page.

2. The "first" directory is protected by having username and password in
Web.config. I want to "another_directory" to have username and password
stored in a database.

Thanks.
 

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,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top