As Ryan suggested, you can either use the same login page or
two different
ones.
The only way you could use the same login page is if all of
your logins are
validated by the method which returns a validated user. The
you will know
if your validated user is an admin or a regular user thereby
allowing you to
redirect to a specified location. You can also use the
web.config file to
designated particular directories for access to only
specific users.
Alternatively, you can create two web projects with two
web.config files.
Later,
Mike
On 4/12/06, Brian Vallelunga <brian vallelunga.com> wrote:
>
> Nothing sensitive, just text saying something like
"To administer your
> site, please login." What I will do is check the
url they are trying to
> reach and display the appropriate text. That should
work as an
> appropriate workaround.
>
> Brian
>
> -----Original Message-----
> From: Discussion of building .NET applications targeted
for the Web
> [mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of Ryan Heath
> Sent: Wednesday, April 12, 2006 3:13 AM
> To: DOTNET-WEB DISCUSS.DEVELOP.COM
> Subject: Re: [DOTNET-WEB] Multiple Login Pages?
>
> Hi,
>
> You can of course create your own login page (for
admins) but they will
> have to navigate themselves to that login page since
asp.net supports
> only one login page currently. That is it will always
redirect to one
> login page as noted in the web.config.
>
> May I ask what is on that admin login page that should
not belong on the
> customer login page? Because no "sensitive"
information should be placed
> on any login page ..
>
> // Ryan
>
> On 4/11/06, Brian Vallelunga <brian vallelunga.com> wrote:
> > I know this wasn't supported in 1.1, but I
thought 2.0 might allow
> > multiple login pages for use with forms
authentication. I need this
> > ability because I have a "customer"
section of my site and an "admin"
> > section. The administration section should have a
different login page
>
> > than the customer section.
> >
> > Thanks,
> >
> > Brian
> >
> > ===================================
> > This list is hosted by DevelopMentor(r) http://www.develop.com
> >
> > View archives and manage your subscription(s) at
> > http://discuss.develop.com
> >
>
> ===================================
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|