RE: Forms Authentication for particular folder

From: ranganh (ranganh_at_discussions.microsoft.com)
Date: 06/28/04

  • Next message: ranganh: "RE: web.config"
    Date: Mon, 28 Jun 2004 02:03:01 -0700
    
    

    Dear VIC,

    You need to add the following code to your web.config file.

    <location path="login">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
    </location>

    Hope it helps.

    Thanks.

    "VIC" wrote:

    > Hi,
    >
    > I'm working on a webapplication, most part is for anonymous access, but for
    > one part login is needed. All the files after login are in one particual
    > folder: "/login".
    >
    > Usernames and passwords are stored in a tabel on SQL Server.
    > The loginpage and Web.config are in the root of the web.
    >
    > I've tried several things but I don't get it work correctly.
    > My code of checking against the table works correctly, I'm struggling with
    > Web.config.
    >
    > The authentication section of Web.config is like:
    >
    > <authentication mode="Forms">
    > <forms name="justaname"
    > path="/"
    > loginUrl="login.aspx"
    > protection="All"
    > timeout="20">
    > </forms>
    > </authentication>
    >
    > All I want to manage is to allow anonymous acces for the whole website,
    > except the content of the subfolder "/login".
    > Any help is appreciated, thanks!
    >
    > VicWare
    > Email: info@vicREMOVE-MEware (spamblock)
    >
    >
    >


  • Next message: ranganh: "RE: web.config"

    Relevant Pages

    • Forms Authentication for particular folder
      ... I'm working on a webapplication, most part is for anonymous access, but for ... All the files after login are in one particual ... The loginpage and Web.config are in the root of the web. ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Forms Authentication for particular folder
      ... > I'm working on a webapplication, most part is for anonymous access, but ... All the files after login are in one particual ... > The loginpage and Web.config are in the root of the web. ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • SUMARY: Cant login as root
      ... As a result, i was not able to log in as root, neither create a new ... Asunto: RE: Can't login as root ... > console. ... > If we log as any other user everythig is ok, but we cannot either do su-. ...
      (Tru64-UNIX-Managers)
    • RE: Urgent help needed with Login problems after installation of FC1
      ... symptom trying to su back to root. ... After another minimal install, I was able to add my user and su to it and su ... I was unable to boot using the boot floppy. ... I did a minimal install and was able to login as root, ...
      (Fedora)
    • Re: BSM, SSH, and Session ID
      ... Are you logging in as root through ssh or is that just the way it is ... Sun SSH/OpenSSH should fork off before the login because the sshd ... It should always be a different session, ...
      (Focus-SUN)