Forms Authentication - Does Not Redirect
From: ElmoWatson (sputnik75043_at_yahoo.com)
Date: 07/30/03
- Next message: IntraRELY: "Deny Access to a page"
- Previous message: Christoph Erdle: "Windows mode authentication - anonymous and authenticated access on same page"
- Next in thread: Steve Jansen: "Re: Forms Authentication - Does Not Redirect"
- Reply: Steve Jansen: "Re: Forms Authentication - Does Not Redirect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 30 Jul 2003 12:36:31 -0500
Here's my problem - - I'm trying to setup Forms Authentication on my server.
I can get the login page to show up every time, but, when it authenticates
(I have a database lookup setup, which apparently DOES give back good data),
it just refreshes the login page, deleting the username & password.
I know the database routine works. It returns a user's account properties,
if verified and nothing, if not - - then, if it returns data from the
database, I set 'blnValidUer' to True - otherwise, I set it to false. This
is working as expected.
Then, I do this in my code:
if blnValidUser="True" then
FormsAuthentication.RedirectFromLoginPage(txtUID.text, True)
(I've also tried -----'response.Write (request.QueryString
("ReturnURL") & "<br>")
else
lblError.text="We're sorry, but the information you provided does not
match our database. Please try again."
End If
Here's my Web.config Code:
<authentication mode="Forms">
<forms name="MySite"
loginUrl="login.aspx"
protection="All"
timeout="480"
path="/"
/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
I checked an earlier post - - my webserver is named normally, with nothing
but letters (no underscores, etc) - - so that's not the problem
Is there something I'm missing here? Why doesn't it redirect correctly?
- Next message: IntraRELY: "Deny Access to a page"
- Previous message: Christoph Erdle: "Windows mode authentication - anonymous and authenticated access on same page"
- Next in thread: Steve Jansen: "Re: Forms Authentication - Does Not Redirect"
- Reply: Steve Jansen: "Re: Forms Authentication - Does Not Redirect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|