how to by-pass forms authentication in a subfolder

Discussion in 'ASP .Net Security' started by Zeng, Nov 24, 2003.

  1. Zeng

    Zeng Guest

    Hello,

    I have an application with forms authentication setting specified in the
    web.config of the app root; so all users must login before they can access
    any page within the app. Is there a way to have a subfolder with a page that
    within the app that doesn't require user to login ?

    For example, I would like to have this page www.myapp.com/testing/check.aspx
    within "testing" folder to open to public w/o request users to login, if it
    has to be the whole folder "testing" must be open to public, that would be
    fine - but just that folder.

    Thank you very much in advance for your help...
     
    Zeng, Nov 24, 2003
    #1
    1. Advertising

  2. Zeng

    Paul Glavich Guest

    Use the <location> element in the web.config to specify something like :-
    <location path="/testing/check.aspx">
    <system.web>
    <authentication mode="None" />
    </system.web>
    </location>

    --
    - Paul Glavich


    "Zeng" <> wrote in message
    news:...
    > Hello,
    >
    > I have an application with forms authentication setting specified in the
    > web.config of the app root; so all users must login before they can access
    > any page within the app. Is there a way to have a subfolder with a page

    that
    > within the app that doesn't require user to login ?
    >
    > For example, I would like to have this page

    www.myapp.com/testing/check.aspx
    > within "testing" folder to open to public w/o request users to login, if

    it
    > has to be the whole folder "testing" must be open to public, that would be
    > fine - but just that folder.
    >
    > Thank you very much in advance for your help...
    >
    >
    >
     
    Paul Glavich, Nov 25, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. joe
    Replies:
    0
    Views:
    425
  2. Kris van der Mast
    Replies:
    3
    Views:
    551
    John Saunders
    Nov 4, 2003
  3. Kris van der Mast

    Forms authentication in a subfolder problem, please help

    Kris van der Mast, Oct 30, 2003, in forum: ASP .Net Security
    Replies:
    3
    Views:
    189
    John Saunders
    Nov 4, 2003
  4. Brett Robichaud

    Forms Authentication in a subfolder

    Brett Robichaud, Apr 10, 2004, in forum: ASP .Net Security
    Replies:
    2
    Views:
    129
    Brett Robichaud
    Apr 10, 2004
  5. Eric
    Replies:
    2
    Views:
    533
Loading...

Share This Page