Help with forms auth

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

  1. #1

    Default Help with forms auth

    Hi,
    I am using forms Auth on my WEB APP. I am checking the credentials in sql
    server. When a user request any page other than login.aspx they get the page.
    Shouldn't they be forwarded first to the Login.aspx? This is a section of my
    web.config file

    -->
    <authentication mode="Forms">
    <forms name ="reportcenterAuth" loginUrl="login.aspx" protection="All"
    timeout="60" path="/"> </forms>
    </authentication>
    <!-- AUTHORIZATION
    This section sets the authorization policies of the application.
    You can allow or deny access
    to application resources by user or role. Wildcards: "*" mean
    everyone, "?" means anonymous
    (unauthenticated) users.
    -->
    <authorization>
    <deny users="?" />
    <allow users="*" /> <!-- Allow all users -->
    <!-- <allow users="[comma separated list of users]"
    roles="[comma separated list of roles]"/>
    <deny users="[comma separated list of users]"
    roles="[comma separated list of roles]"/>
    -->
    </authorization>

    Any ideas. I want when they first start the app and select any page they are
    automatically forwarded to the login.aspx. Also when the user close the
    browser and revisit the page they are also forwarded to the login.aspx.

    Thanks
    Chris Guest

  2. Similar Questions and Discussions

    1. Forms Auth Info passed to Windows Auth?
      The requirement is to build an ASP.Net intranet application, so external users can log in to the main web portal via forms authentication, using...
    2. FORMS AUTH HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      I'm using forms Auth! Why am i getting the error:-I HAVE DONE EVRYTHING NEEDED! Error authenticating. Error obtaining group names. The specified...
    3. Forms Auth. What do you think?
      Hi guys, I am new to forms Authetication and wish to do the following.. A bit like the Dreamweaver Authentication tool... 1. Authenticate my...
    4. Configuring Windows Auth & Forms Auth in Asp.Net
      Configuring Windows Auth & Forms Auth in Asp.Ne Hi, I've configured a web app to use windows authentication and also set up two separate...
    5. Forms auth. don't work going from NET 1.0 to 1.1
      I have a web system with forms authenticationthat works good. When I uppgraded from .NET 1.0 to 1.1 I can't leave the login page. If I change to...
  3. #2

    Default Re: Help with forms auth

    following is a copy of my web.config file

    <authentication mode="Forms">
    <forms name="Form1" path="/" loginUrl="login.aspx"
    protection="All" timeout="30">
    </forms>
    </authentication>

    it works fantastic. Not sure why you would face the problem. check the
    forms name and make sure they all match. All my forms are named
    uniformly as Form1.

    Good luck !!!

    "Chris" <Chris@discussions.microsoft.com> wrote in message news:<CA3ED4ED-E166-4E2D-B624-B11DE45FF7D3@microsoft.com>...
    > Hi,
    > I am using forms Auth on my WEB APP. I am checking the credentials in sql
    > server. When a user request any page other than login.aspx they get the page.
    > Shouldn't they be forwarded first to the Login.aspx? This is a section of my
    > web.config file
    >
    > -->
    > <authentication mode="Forms">
    > <forms name ="reportcenterAuth" loginUrl="login.aspx" protection="All"
    > timeout="60" path="/"> </forms>
    > </authentication>
    > <!-- AUTHORIZATION
    > This section sets the authorization policies of the application.
    > You can allow or deny access
    > to application resources by user or role. Wildcards: "*" mean
    > everyone, "?" means anonymous
    > (unauthenticated) users.
    > -->
    > <authorization>
    > <deny users="?" />
    > <allow users="*" /> <!-- Allow all users -->
    > <!-- <allow users="[comma separated list of users]"
    > roles="[comma separated list of roles]"/>
    > <deny users="[comma separated list of users]"
    > roles="[comma separated list of roles]"/>
    > -->
    > </authorization>
    >
    > Any ideas. I want when they first start the app and select any page they are
    > automatically forwarded to the login.aspx. Also when the user close the
    > browser and revisit the page they are also forwarded to the login.aspx.
    >
    > Thanks
    Gopal Krish 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