Using forms authentication class for authentication
<p>I am developing an user authentication site. 
I have a login page, "Login.aspx" in which i have provided a login control.
In the web.config,</p>

<pre><code>&lt;authentication mode="Forms"&gt;
        &lt;forms name=".AuthenticationCookie" loginUrl="Login.aspx"  protection="All" timeout="60" path="/"&gt;
            &lt;credentials passwordFormat="Clear"&gt;
                &lt;user name="Jack" password="Jerry"/&gt;
            &lt;/credentials&gt;
        &lt;/forms&gt;
    &lt;/authentication&gt;
    &lt;authorization&gt;
        &lt;deny users="*"/&gt;
    &lt;/authorization&gt;
</code></pre>

<p>In the login.aspx.cs page,
I have provided,</p>

<pre><code> protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
    {
        if (FormsAuthentication.Authenticate(Login1.UserName,Login1.Password))
        {
             FormsAuthentication.SetAuthCookie(Login1.UserName,true);
            Label1.Text = "Login Successful";
            Login1.InstructionText = "";
            FormsAuthentication.RedirectFromLoginPage(Login1.UserName, true);
            Response.Redirect("Success.aspx")

        }
        else
        {
            Label1.Text = "You are not an authentic user";
        }


    }
}
</code></pre>

<p>but however, while execution instead of going to success.aspx 
with the url <a href="http://localhost/Login.aspx?ReturnUrl=%2fSuccess.aspx" rel="nofollow">http://localhost/Login.aspx?ReturnUrl=%2fSuccess.aspx</a></p>

<p>Why is this so? </p>
