
ASP.Net Forms Authentication
When Forms Authentication succeeds ASP.NET issues a cookie so that the user
can be identified next time they make a request on the site, and they no
longer have to login. One thing to check is that your browser is accepting
the cookie. It sounds as though yours might not be.
--
Mark Bower
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Quote:
> I believe I have everything setup and coded correctly to perform forms
> authentication, but it doesn't seem to be working. It knows when to
> show my Login page and it handles proper and improper
> userids/passwords correctly, but when a valid user is entered it
> appears as if it will redirect to the originally requested page, but
> it returnes to the login page (with the user id values wiped clean).
> My code looks like all the samples I have seen:
> If FormsAuthentication.Authenticate(sUser, sPassword) Then
> FormsAuthentication.RedirectFromLoginPage(sUser, True)
> Else
> lblMessage.Text = "<b>The user id '" & sUser & "' or
> password entered are invalid, please re-enter.</b>"
> End If
> I'm not sure what the problem is, can someone help?
> Thanks,
> Craig