Re: Forms Authentication Question
From: Z (zarehdAThotmailDOTcom)
Date: 12/21/03
- Previous message: wei1: "can't access ASP web application from another PC in same network"
- In reply to: Greg: "Forms Authentication Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 21 Dec 2003 03:01:27 -0500
I believe the problem is that your login page is in a folder that is not
accessible by anonymous users. Put the login.aspx page in a public
<authorization ... allow user="*"> folder and protected pages in a separate
folder (that doesn't allow anonymous users. ) Give it shot. It works
here!!! Also, keep in mind that web.config settings flow down the directory
structure until another web.config is found that overrides its settings.
HTH.
"Greg" <ggb_business@yahoo.com> wrote in message
news:1450901c3c339$4b6861b0$a601280a@phx.gbl...
> I would like to secure an ASP.NET application with Forms
> Authentication. Within the web.config file of the
> application, I have the following:
>
> <authentication mode="Forms">
> <forms
> loginUrl="http://localhost/authenticate/login.aspx"
> path="/" />
> </authentication>
>
> <authorization>
> <deny users="?" />
> </authorization>
>
> The IIS Security is set to Anonymous Access. When I
> attempt to access a page in my web application, I am
> redirected to the login page specified in the URL above.
> When I enter the username and password, and click login,
> I am redirected again to the same login page. I cannot
> get past the login page. What am I doing wrong?
- Previous message: wei1: "can't access ASP web application from another PC in same network"
- In reply to: Greg: "Forms Authentication Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|