Re: How to make forms authentication in subdirs?

From: Jim Ross [MVP] (rossj@lotsofspamthroughhere.com)
Date: 06/25/02


From: "Jim Ross [MVP]" <rossj@lotsofspamthroughhere.com>
Date: Tue, 25 Jun 2002 11:02:24 -0500


What do the authentication sections look like in the web.config you
are putting in the subdirectories?

"Rui Maia" <rfpm@mega.ist.utl.pt> wrote:

>I've tried of making a section <location> in the main
>web.config of my project and also tried to make a
>web.config in the subdir... but as long as my forms are in
>the subdir...it doesn't work.
>If i put my forms in the the root of the project...it
>works...
>....anyone as an explanation ?
>
>thank you

Jim Ross
MS MVP [ASP.NET][VC/MFC emeritus]

To send email, change 'lotsofspamthroughhere' to 'msn' but please ask all questions in the newsgroups, not via private mail



Relevant Pages

  • Re: Troubled authentication in subdirectories
    ... You can only have one authentication section in a web application. ... limitations you want in the specific subdirectories, that doesn't matter, ... I want to have an unrestricted root directory and some protected ... located in the root directory to protect a subdirectory: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms Authentication problem
    ... is the subdirectory a virtual directory? ... Dalvir ... > I am developing an ASP.NET application that uses forms authentication. ... > in one of the subdirectories it requires me to log in again. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Forms Authentication problem
    ... I am developing an ASP.NET application that uses forms authentication. ... However, it contains subdirectories, and they don't get authenticated ... somehow. ... page in the application's root directory. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple Subdirectories with different login pages
    ... them virtual directories as well. ... > <authentication> can only be specified per application. ... >> Now sites A,B, and C will all have seperate loging forms using custom ... >> I cannot place a seperate web.config in the the subdirectories with ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple Subdirectories with different login pages
    ... If you want different authentication schemes for the child directories then you'll have to make them applications in IIS. ... WEBSITE main directory allows anonymous users fine. ... Now sites A,B, and C will all have seperate loging forms using custom ... I cannot place a seperate web.config in the the subdirectories with ...
    (microsoft.public.dotnet.framework.aspnet)