FormsAuthentication Fails

From: Caroline Bogart (ctbogart_at_yahoo.com)
Date: 06/21/03


Date: 21 Jun 2003 07:11:57 -0700


Given the following code, I get two undesireable results. I cannot
pinpoint why I get one or the other.

Either the login.aspx is not called at all, or if it is called, the
FormsAuthentication.RedirectFromUrl simply falls through to the next
line of code and fails to execute.

    <authentication mode="Forms" >
                <forms
                        name="ASPXAUTH"
                        loginUrl="login.aspx"
                        path="/"
                        />
        </authentication>
        <authorization>
                <deny users="?" />
        </authorization>

login.aspx.cs
Page_Load:
      FormsAuthentication.RedirectFromLoginPage("email@email.com",true);

restricted.aspx.cs
Page_Load
      Response.Write("Restricted");

At one point I got the bug to move from failing to call login.aspx.cs
to calling restricted.aspx.cs by removing the dot on the cookie name
(".ASPXAUTH").

Any help is greatly appreciated,
Caroline



Relevant Pages

  • Re: .
    ... PINPOINT THAT DOT, MAN! ... He used "white ink" ... Burr ...
    (misc.fitness.weights)
  • Re: .
    ... THAT'S CRUEL, DAVID! ... PINPOINT THAT DOT, MAN! ...
    (misc.fitness.weights)