You don't use Response.Redirect from the login page unless you're doing
some custom cookie/ticket creation. Once you verify the user is legit,
call FormsAuthentication.RedirectFromLoginPage.

-Brian

-----Original Message-----
From: Lude Gullit [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 2:57 PM
To: [EMAIL PROTECTED]
Subject: [C#.NET] About authentication


Hi,

I use forms authentiction and deny anonymous users in my project. If
someone requests a page other than the login.aspx, it will direct
them to login.aspx. That is fine.

But if someone FIRST requests login.aspx and after I check the
username and password and use response.redirect["xxx.aspx"] to
redirect to next page, it doesn't work and it is still the same
page. Do I need to write something telling the server it is already
authentcated?

Thanks


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5584357.6650215.3001176/D=groups/S=:HM/A=2426683/rand=142769189


Yahoo! Groups Links

Reply via email to