Re: form based authentication and free pages

From: Ben Amada (ben@powerpick.com)
Date: 09/27/02


From: "Ben Amada" <ben@powerpick.com>
Date: Thu, 26 Sep 2002 15:25:33 -0700


"YA" <ra294@hotmail.com> wrote:

> Thanks for the example !
> Is it possible to allow access to a folder to only 1 user for example:
> <location path="protected">
> <system.web>
> <authorization>
> <allow users="Admin" />
> <deny users="?" />
> </authorization>
> </system.web>
> </location>
> Thanks ?

Hi YA,

You're close! Try using the code below. Note that the only difference
between the code below and your code (above) is that it should be deny
users="*" and not "?".

  <location path="protected">
     <system.web>
        <authorization>
           <allow users="Admin" />
           <deny users="*" />
        </authorization>
     </system.web>
  </location>

--
Ben