Forms Authentication and Login Pages

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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....
  3. #2

    Default 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...
    > 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
    >
    >
    >

    David Waz... Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139