Re: FormsAuthentication
From: Yarx (Nick_com_at_hotmail.com)
Date: 05/28/03
- Previous message: Jay Janarthanan: "Looking for 3DES Library that supports C#/.NET and C/Linux at the same time."
- In reply to: ooo: "Re: FormsAuthentication"
- Next in thread: Chris Roden: "Re: FormsAuthentication"
- Reply: Chris Roden: "Re: FormsAuthentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
> > >
> > >
> >
> >
>
>
- Previous message: Jay Janarthanan: "Looking for 3DES Library that supports C#/.NET and C/Linux at the same time."
- In reply to: ooo: "Re: FormsAuthentication"
- Next in thread: Chris Roden: "Re: FormsAuthentication"
- Reply: Chris Roden: "Re: FormsAuthentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|