Ask a Question related to ASP.NET General, Design and Development.
-
Dave #1
Forms Authentication and Login Pages
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
Dave Guest
-
Strange problem with Forms authentication: After successfull login, login page is still displayed
Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last... -
Login without Forms authentication
Hi! If I enable Forms authentication for a subdirectory in the web.config file, several types can't be loaded anymore (because the subdirectory... -
Forms authentication - login fails
Hi, I have an ASP application using Forms authentication. On my development web server everything works and login is successful, but when I move... -
Forms authentication and multiple login pages
Hi, I use a "forms based" security scheme. As I understood it, all I need is a "login" page (the unsecured one) and the rest. I have a little... -
Authentication forms and SSL on the login page
Hi all, I'm tryiing to set up security for a ASP.NET web application in order to force all the users to go to a login page with an SSL connection.... -
David Waz... #2
Re: Forms Authentication and Login Pages
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" <lyd@cambridgemedia.com.au.nospam> wrote in message
news:bY8Na.248$kY2.5234@nnrp1.ozemail.com.au...This> 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.for> works perfectly fine but I now need to add another login authenticationfile?> 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>
>
> <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
>
>
>
David Waz... Guest



Reply With Quote

