Problem in forms authentication

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

  1. #1

    Default Problem in forms authentication

    Hi friends,

    We have an web application which contains several folders & we are
    trying to implement forms authentication.

    Login page for the application is residing in root directory.
    When I try to access any of aspx page in a subfolder, authentication
    is
    done properly but it does not redirect user to login page (tries to
    find the login.aspx) in the subfolder & gives error as "resource can't
    be found"

    Code in Web.Config :
    <authentication mode="Forms">
    <forms name="NeulandCookie" path="/" loginUrl="/login.aspx"
    protection="All" timeout="30">
    </forms>
    </authentication>

    can anyone help me for solving this??

    Thanks & Regards,
    Rasika.
    rsv Guest

  2. Similar Questions and Discussions

    1. forms authentication problem
      I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying...
    2. Forms Authentication problem with IsAuthenticated
      Hello All, I am trying to set up forms authentication for an ASP.NET web site. I programmed quite a bit of stuff with custom IPrincipal and...
    3. Forms Authentication Problem with WebRequest (Tried Everything)
      Hello, all, I have done my homework, but I can not get my webrequest to access a page which is protected by forms authentication. As other...
    4. Problem with Forms Authentication
      I have an application using FormsAuthentication that does not persist the authentication cookie beyond the session so each time a user starts a...
    5. ssl with <forms authentication> and loginurl problem
      Hi, I've configured SSL with server certificates on a IIS with W2K. Itested it ans works with simple html pages. I want the login page to be under...
  3. #2

    Default Re: Problem in forms authentication

    funny? hmm, "login.aspx" is default - try to use:

    <authentication mode="Forms">
    <forms name="NeulandCookie" path="/"
    protection="All" timeout="30">
    </forms>
    </authentication>

    --
    Daniel Fisher(lennybacon)
    MCP ASP.NET C#
    Blog: [url]http://www.lennybacon.com/[/url]


    "rsv" <rasika@tatatechnologies.com> wrote in message
    news:ed63541c.0501170018.28b4cda7@posting.google.c om...
    > Hi friends,
    >
    > We have an web application which contains several folders & we are
    > trying to implement forms authentication.
    >
    > Login page for the application is residing in root directory.
    > When I try to access any of aspx page in a subfolder, authentication
    > is
    > done properly but it does not redirect user to login page (tries to
    > find the login.aspx) in the subfolder & gives error as "resource can't
    > be found"
    >
    > Code in Web.Config :
    > <authentication mode="Forms">
    > <forms name="NeulandCookie" path="/" loginUrl="/login.aspx"
    > protection="All" timeout="30">
    > </forms>
    > </authentication>
    >
    > can anyone help me for solving this??
    >
    > Thanks & Regards,
    > Rasika.

    Daniel Fisher\(lennybacon\) Guest

  4. #3

    Default Problem in Forms Authentication

    Hi Daniel,

    Thank u very much for ur reply... but that doesn't work either.
    My login page's name is "login.aspx" & thats why i hv specified the
    same in loginurl.
    What else can be the problem? I m still getting same error.

    Thanks & Regards,
    Rasika.
    rsv Guest

  5. #4

    Default Re: Problem in Forms Authentication

    Hi Rasika

    Hmm, I don't know what the problem is but what you can do to get things done
    is: use url redirection (HttpModule) and catch all "login.aspx" filse and
    send them to "/signin.aspx" for example. But i'm pretty sure that there is
    some male configuration somewhere on ya server.


    Hope that helps


    Cheers


    Daniel
    --
    Daniel Fisher(lennybacon)
    MCP ASP.NET C#
    Blog: [url]http://www.lennybacon.com/[/url]



    "rsv" <rasika@tatatechnologies.com> wrote in message
    news:ed63541c.0501180018.265cd253@posting.google.c om...
    > Hi Daniel,
    >
    > Thank u very much for ur reply... but that doesn't work either.
    > My login page's name is "login.aspx" & thats why i hv specified the
    > same in loginurl.
    > What else can be the problem? I m still getting same error.
    >
    > Thanks & Regards,
    > Rasika.

    Daniel Fisher\(lennybacon\) Guest

  6. #5

    Default Problem in Forms Authentication

    where shall i check for such mal configurations on my server??
    rsv 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