|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Web config questionI'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 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 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
Other interesting topics
an old geezer running visual studio for the first time
SqlParameters SqlDbType.Char in VB Question DataGrid Runtime DropDown - ViewState Issue question about the "Page Controller" pattern Media Center any good? override default values in a constructor Strange Datagrid Update Problem Global Variables!q interesting fact about date. how to get application name and path programmatically |
|||||||||||||||||||||||