467,081 Members | 1,231 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

IsAuthenticated with multiple cookie

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
Nov 19 '05 #1
  • viewed: 1021
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by jing_li | last post: by
reply views Thread by John Bravo | last post: by
reply views Thread by Fred Palmer | last post: by
4 posts views Thread by Nedu N | last post: by
5 posts views Thread by Shane Thomas | last post: by
reply views Thread by dotnettester | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.