Quantcast
Viewing all articles
Browse latest Browse all 3527

Are there any forums for web development? I need to configure a site with forms authorization that uses aspmembership provider and has a protected folder

Can someone help out in configuring a site that has the aspmembersip provider alongside with a protected folder? It works with the configuration in my development environment but it asks for authentication when under my host provider. Here is my current configuration. In the root, I have:

<authentication mode ="Forms">
<forms name=".ASPXAUTHCookie"
loginUrl="https://<sitename.com>/<protectedFolder>/Login.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="true"
slidingExpiration="true"
cookieless="UseDeviceProfile" defaultUrl="<ProtectedFolder>/DefaultPage.aspx"
/>
</authentication>

in the folder that I intend to ask for authentication, I have:

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

</authorization>

</system.web>
<location path="<UnprotectedPage1.aspx">

<system.web>

<authorization>
<allow users="*"/>

</authorization>



</system.web>

</location>
<location path="<UnprotectedPage2.aspx">

<system.web>

<authorization>


<allow users="*"/>

</authorization>
</system.web>

</location>


</configuration>


CHS


Viewing all articles
Browse latest Browse all 3527

Trending Articles