Web config question

G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top