Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

login problem

I have writhen a very simple login page in ASP.NET, the login page is working fine but when I submit the right username and password I'm being redirected to the login page again.

this is the way my site is built: 

MySite (root folder)
    Defalut.aspx (this is the startup page)
    Members (Sub folder)
        Web.Config (Set authentication see below)

those are the code lines from my web.config file in the Members folder:

<authentication mode="Forms">
    <forms name=".ASPXFORUM1" loginUrl="../Login.aspx" protection="All" timeout="30" path="/" />
    <deny users="?" />

please let me know if there is something wrong in my code

Bar Elimelech
Wednesday, August 13, 2003

Show us your code -- are you using RedirectFromLoginPage()?

Duncan Smart
Wednesday, August 13, 2003

This sounds exactly like something I ran into the first time I tried to do this - turned out I wasn't saving the authentication to the cookie... are you?

Sample code goes a long way :)

Greg Hurlman
Tuesday, August 19, 2003

*  Recent Topics

*  Fog Creek Home