Re: FormsAuthentication

From: Yarx (Nick_com_at_hotmail.com)
Date: 05/28/03

  • Next message: Chris Roden: "Re: FormsAuthentication"
    Date: Tue, 27 May 2003 18:59:18 -0600
    
    

    You can also specify certain pages that can explicitly be given different
    access rights than that of other pages. For example.

    <configuration>

        <system.web>
            ~~All the default settings in the web.config file...~~
        </system.web>

        <location path="register.aspx">
            <system.web>
                <authorization>
                    <allow users="*" />
                </authorization>
            </system.web>
        </location>
    </configuration>

    This will allow everyone to access the registration page regardless if they
    have been authenticated or not. Just make sure to notice that they are NOT
    within the <system.web> tag that is in the web.config file be default,
    outside of it.

    <ooo> wrote in message news:%23XjdIY5IDHA.1584@TK2MSFTNGP11.phx.gbl...
    > I tired creating 2 web.config files but does not want to show the page, is
    > there anything special i need to do when having multiple web.config files
    >
    > "Matjaz Ladava" <matjaz@_nospam_ladava.com> wrote in message
    > news:%23UaGhU4IDHA.2240@TK2MSFTNGP11.phx.gbl...
    > > Different folders can have different web.config, which can have
    different
    > > authorization section. Example would be, that you place your
    registration
    > > site in different directory, which contains web.config in which you have
    > > authorization section with allow users = "*" (all users)
    > > authorization section is order sensitive and built from top directory
    down
    > > to machine.config, so that entry in your folder will take precedence and
    > > allow all users to access it.
    > >
    > > Regards
    > >
    > > Matjaz Ladava
    > >
    > > <ooo> wrote in message news:%23$hUZH4IDHA.2764@tk2msftngp13.phx.gbl...
    > > > Is it possible to have a user redirected to a page (login.aspx) for
    > > certain
    > > > page access?
    > > >
    > > > i.e. for my registration page I wish them not to be redirected to the
    > > login
    > > > page, but for every other page they access if they are not
    authenticated
    > > > then they are redirected?
    > > >
    > > > Cheers
    > > >
    > > > e
    > > >
    > > >
    > >
    > >
    >
    >


  • Next message: Chris Roden: "Re: FormsAuthentication"

    Relevant Pages

    • Re: Sharing /export/home folders between two servers running DNS
      ... >> folders on one machine and mount them on the other. ... >> Regardless of which of the two machines you were logged ... such as NIS or LDAP, I would first check that the user id numbers of the two ...
      (comp.unix.solaris)
    • Re: FormsAuthentication
      ... there anything special i need to do when having multiple web.config files ... > Different folders can have different web.config, ... > authorization section is order sensitive and built from top directory down ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: nvcbin.def.5CF22F60.tmp
      ... The folders should not be able to ... exist in the same directory when they have the same name regardless of ... capitalization. ... When I try to delete I get a messge they are in use - close ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: FormsAuthentication
      ... > Different folders can have different web.config, ... > authorization section is order sensitive and built from top directory down ... > Matjaz Ladava ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: FormsAuthentication
      ... Different folders can have different web.config, ... authorization section with allow users = "*" ... Matjaz Ladava ...
      (microsoft.public.dotnet.framework.aspnet.security)