asp.net FORMS authentication question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kevin

    #1

    asp.net FORMS authentication question

    hi all

    with forms authentication, how does that work for a site with introduction
    and tour or maybe some more pages?
    by using forms authentication, all pages have to be authenticated before
    viewing, but in case when only the database access page needed to be
    authenticated, how would forms authentication work for that? does it needed
    to be broke down into two asp.net apps, one authentication mode = none the
    other using forms ?






  • George Durzi

    #2
    Re: asp.net FORMS authentication question

    put the pages that you don't want to be protected by FormsAuth into their
    own directory.
    then inside that dir create a web.config file with this in it.

    <?xml version="1.0" encoding="utf-8" ?>

    <configuratio n>

    <system.web>

    <authorizatio n>

    <allow users="*" />

    </authorization>

    </system.web>

    </configuration>


    "kevin" <kyu@nrcan.gc.c a> wrote in message
    news:OJhpykEWDH A.384@TK2MSFTNG P12.phx.gbl...[color=blue]
    > hi all
    >
    > with forms authentication, how does that work for a site with introduction
    > and tour or maybe some more pages?
    > by using forms authentication, all pages have to be authenticated before
    > viewing, but in case when only the database access page needed to be
    > authenticated, how would forms authentication work for that? does it[/color]
    needed[color=blue]
    > to be broke down into two asp.net apps, one authentication mode = none the
    > other using forms ?
    >
    >
    >
    >
    >
    >[/color]


    Comment

    • Mark Heimonen

      #3
      Re: asp.net FORMS authentication question

      Hi Keven,

      You can specify that you want to allow anonymous access to certain pages on
      the website without requiring the user to be authenticated. To do so, add
      the following at the bottom of your web.config file (before the closing
      /configuration tag)

      <location path="TOURPAGE. aspx">
      <system.web>
      <authorizatio n>
      <allow users="*" />
      <allow users="?" />
      </authorization>
      </system.web>
      </location>


      -Mark Heimonen

      "kevin" <kyu@nrcan.gc.c a> wrote in message
      news:OJhpykEWDH A.384@TK2MSFTNG P12.phx.gbl...[color=blue]
      > hi all
      >
      > with forms authentication, how does that work for a site with introduction
      > and tour or maybe some more pages?
      > by using forms authentication, all pages have to be authenticated before
      > viewing, but in case when only the database access page needed to be
      > authenticated, how would forms authentication work for that? does it[/color]
      needed[color=blue]
      > to be broke down into two asp.net apps, one authentication mode = none the
      > other using forms ?
      >
      >
      >
      >
      >
      >[/color]


      Comment

      • neo ew

        #4
        Re: asp.net FORMS authentication question





        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        Working...