Forms Authentication - Does Not Redirect

From: ElmoWatson (sputnik75043_at_yahoo.com)
Date: 07/30/03


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?



Relevant Pages

  • Re: postgres phpgroupware login woes
    ... > I login as user postgres I can login to ... > a database phpgroupware. ... I cannot create phpgroupware database from phpgroupware ... When you access through the web, you cannot use ident authentication ...
    (Debian-User)
  • self-inflicted authentication issue
    ... I have an unusual situation dealing with forms authentication, ... In theses pages I setup site ... I set things up this way so I can use a common login page, ... the page_load event of the entry pages, but removing ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Linked Table-Embed Password
    ... login/password setup on the IBM400 secure, ... When everyone used their own login, ... other database if the login is not set up with proper ...
    (microsoft.public.access.security)
  • Re: Cant connect to databases through Enterprise Manager
    ... Login to Query analyzer using Windows Authentication ... >How to change the default database of your existing ... >> verify SQL Server is running and check your SQL Server ...
    (microsoft.public.sqlserver.connect)
  • Re: Sql Server Login
    ... > When i'm using Server Explorer, I have a small red x next to all the ... > Which is better for creating the database on one computer and then ... login credential you need to, you have to set the SQL Server/MSDE instance ... SQL Server uses a so called "2 phase" authentication policy: ...
    (microsoft.public.sqlserver.msde)