JabbaTheNut
Programmer
My website is structured as follows:
/localhost
...default.aspx
...web.config
...otherfiles.aspx
.../MySubDir
......default.aspx
......otherfiles.aspx
The web.config located in my root directory looks like the following:
<configuration>
....<system.web>
........<authentication mode="Forms">
............<forms name="MyAuth" loginUrl="MySubDir/Login.aspx" protection="All" timeout="60" path="/" />
........</authentication>
....</system.web>
....<location path="MySubDir">
........<system.web>
............<authorization>
................<deny users="?" />
............</authorization>
........</system.web>
....</location>
</configuration>
This configuration stores identity information in the "MyAuth" cookie and sends unauthorized users who try to enter the "MySubDir" subdirectory to the login page located at "MySubDir/Login.aspx".
My problem is as follows:
I want to add another subdirectory called "MyOtherSubDir". I want to use a different identity cookie such as "MyOtherAuth" and I want to send unauthorized users who try to enter "MyOtherSubDir" to a different login page located at "MyOtherSubDir/Login.aspx".
How would I modify the above web.config file to achieve my objective. Any help would be appreciated. Thanks Game Over, Man!
/localhost
...default.aspx
...web.config
...otherfiles.aspx
.../MySubDir
......default.aspx
......otherfiles.aspx
The web.config located in my root directory looks like the following:
<configuration>
....<system.web>
........<authentication mode="Forms">
............<forms name="MyAuth" loginUrl="MySubDir/Login.aspx" protection="All" timeout="60" path="/" />
........</authentication>
....</system.web>
....<location path="MySubDir">
........<system.web>
............<authorization>
................<deny users="?" />
............</authorization>
........</system.web>
....</location>
</configuration>
This configuration stores identity information in the "MyAuth" cookie and sends unauthorized users who try to enter the "MySubDir" subdirectory to the login page located at "MySubDir/Login.aspx".
My problem is as follows:
I want to add another subdirectory called "MyOtherSubDir". I want to use a different identity cookie such as "MyOtherAuth" and I want to send unauthorized users who try to enter "MyOtherSubDir" to a different login page located at "MyOtherSubDir/Login.aspx".
How would I modify the above web.config file to achieve my objective. Any help would be appreciated. Thanks Game Over, Man!