Home All Groups Group Topic Archive Search About
Author
11 Jun 2005 8:26 PM
Rudy
Hello all!

I'm using form Authintication on my web app. It works fine fo my app fine,
but when I go to the second app, it doesn'y work. The second app is in a
virtual directory. Now if I give permision in the web config like

<location path="app2/logon.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>

It works. But now if I go to mydomain/app2/default, I get kicked back to
mydomain/welcome. How can I logon on my first page, and havie it carry
through in the web config.

Thanks!

Rudy

Author
12 Jun 2005 1:15 AM
Saeid
Hello
In this case your code should be like this:
<location path="app2 ">
        <system.web>
          <authorization>
            <deny users="?" />
        </authorization>
                                <authentication mode="Forms">
                                              <loginUrl="app2/logon.aspx"
timeout="30" />
                                </authentication>
    </system.web>
</location>

Regards
Saeid Kdaimati

Show quoteHide quote
"Rudy" wrote:

> Hello all!
>
> I'm using form Authintication on my web app. It works fine fo my app fine,
> but when I go to the second app, it doesn'y work. The second app is in a
> virtual directory. Now if I give permision in the web config like
>
> <location path="app2/logon.aspx">
> <system.web>
> <authorization>
> <allow users="?" />
> </authorization>
> </system.web>
> </location>
>
> It works. But now if I go to mydomain/app2/default, I get kicked back to
> mydomain/welcome. How can I logon on my first page, and havie it carry
> through in the web config.
>
> Thanks!
>
> Rudy
Are all your drivers up to date? click for free checkup

Author
13 Jun 2005 11:48 AM
Patrick.O.Ige
Rudy hope saieid solution solved your problem

Show quoteHide quote
"Rudy" <R***@discussions.microsoft.com> wrote in message
news:F45D84A4-CF15-498F-8398-210788B73F04@microsoft.com...
> Hello all!
>
> I'm using form Authintication on my web app. It works fine fo my app fine,
> but when I go to the second app, it doesn'y work. The second app is in a
> virtual directory. Now if I give permision in the web config like
>
> <location path="app2/logon.aspx">
> <system.web>
> <authorization>
> <allow users="?" />
> </authorization>
> </system.web>
> </location>
>
> It works. But now if I go to mydomain/app2/default, I get kicked back to
> mydomain/welcome. How can I logon on my first page, and havie it carry
> through in the web config.
>
> Thanks!
>
> Rudy

Bookmark and Share