still Authentication problems

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

    still Authentication problems

    Hi all

    I've problems with forms authentication. I'm using a simple
    function on the login.aspx page:

    Private Sub LoginButton_Cli ck(ByVal sender As
    System.Object, ByVal e As System.EventArg s) Handles
    LoginButton.Cli ck
    If (FormsAuthentic ation.Authentic ate(TextBox_Nam e.Text,
    TextBox_Passwor d.Text)) Then


    FormsAuthentica tion.SetAuthCoo kie(TextBox_Nam e.Text, True)
    Response.Redire ct("Webform1.as px", False)

    Else
    ....
    End If
    End Sub
    End Class

    And my web.config:

    <authenticati on mode="Forms" >
    <forms
    name="AuthCooki e"
    path="\"
    loginUrl="Login .aspx"
    protection="All "
    timeout="300">
    <credentials passwordFormat= "Clear">
    <user name="Test" password="Passw ord"/>
    </credentials>
    </forms>
    </authentication>

    <authorizatio n>
    <allow users="Test"/>
    <deny users="?" />
    </authorization>

    After starting and entering the correct information I'm
    redirected from webform1.aspx to login.aspx with


    But I can find the AuthCookie in the Internet Explorer. Is
    there something to change in IIS? I'm really at a loss!

    Thanks for help

    Jenny
Working...