Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Forms Authentication and Login Pages

Reply
Thread Tools

Forms Authentication and Login Pages

 
 
Dave
Guest
Posts: n/a
 
      07-04-2003
Hi,

I am creating a web application which have two different login areas. One
for members and one for administrators. Currently, I am using forms
authentication to validate the login for administrators as shown below. This
works perfectly fine but I now need to add another login authentication for
members which redirects them to a different login page if they are not
authenticated. Does anyone know how I would add this to the web.config file?


<configuration>
<system.web>
<authentication mode="Forms">
<forms name="..admin" path="/" loginUrl="/admin/login.aspx"
protection="All" timeout="30"/>
</authentication>
</system.web>
<location path="admin/documents">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>


Thanks,
Dave


 
Reply With Quote
 
 
 
 
David Waz...
Guest
Posts: n/a
 
      07-04-2003
Could use more info.... but

If you have a separate web application, you can place the security
information inside THAT applications Web.Config file, instead of trying to
do double duty on a single app.

If you are trying to class users as "admin" and "Normal", you can store that
information in the encrypted cookie as the security value, and extract that
value on page-load to verify authorization.


"Dave" <(E-Mail Removed)> wrote in message
news:bY8Na.248$(E-Mail Removed)...
> Hi,
>
> I am creating a web application which have two different login areas. One
> for members and one for administrators. Currently, I am using forms
> authentication to validate the login for administrators as shown below.

This
> works perfectly fine but I now need to add another login authentication

for
> members which redirects them to a different login page if they are not
> authenticated. Does anyone know how I would add this to the web.config

file?
>
>
> <configuration>
> <system.web>
> <authentication mode="Forms">
> <forms name="..admin" path="/" loginUrl="/admin/login.aspx"
> protection="All" timeout="30"/>
> </authentication>
> </system.web>
> <location path="admin/documents">
> <system.web>
> <authorization>
> <deny users="?"/>
> <allow users="*"/>
> </authorization>
> </system.web>
> </location>
> </configuration>
>
>
> Thanks,
> Dave
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best practices for using forms authentication and security in a hosted env (was: Re: Using a Forms authentication in a shared hosting environment) JEFF ASP .Net 1 11-12-2007 07:00 PM
Strange problem with Forms authentication: After successfull login, login page is still displayed Pascal Blanchard ASP .Net Security 1 08-18-2004 08:36 AM
Strange problem with Forms authentication: After successfull login, login page is still displayed Pascal Blanchard ASP .Net Security 0 08-17-2004 06:26 PM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM
Forms authentication and multiple login pages Leo Gagne ASP .Net Security 0 12-03-2003 02:40 PM



Advertisments