Hello,
I currently have two section in my site which required authentication,
to be able to have different section, I've create virtual directory for the
two sections and I've try to use forms authentication with the following
web.config in the root
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
<location path="sub1">
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name=".General"
loginUrl="/sub1/default.aspx"
timeout="15"
protection="All">
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="sub2">
<system.web>
<authentication mode="Forms">
<forms name=".Personnel"
loginUrl="/sub2/default.aspx"
timeout="15"
protection="All">
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
If I go to sub1, I get a request to get authenticated, which is working
fine, however if I try to go to sub2 afterward using the
Request.IsAuthenticated to see if it is, it will return True, base on the
fact that the first forms (sub1) has already put a cookie.
My question is how can I check which cookie has been authenticated, if
possible base on the FORMS name="..."
Thank
ML