471,056 Members | 1,634 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,056 software developers and data experts.

Forms Authentication not Redirecting

I have a web app that contains forms authentication to protect
subdirectory called "admin" by denying anonymous users. When I request
a protected resource in the admin directory I am presented with a
Windows logon dialog prompt instead of being redirected to the logon
page. In the web.config it is setup as follows:

<configuration>
<system.web>
....
<authentication mode="Forms">
<forms
name="myCookie"
protection="All"
path="/"
loginUrl="login.aspx"
timeout="10" >
</forms>
</authentication>
....
<system.web>

<location path="admin">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>

<configuration>

If I change the <deny users="?"/to <allow users="?"/the Windows
logon prompt goes away, but of course the resource us unprotected and
it does not redirect to the login.aspx page. Its behaving as though I
am using Windows authentication. Any ideas why is the Windows logon
prompt is being displayed rather than simply redirecting to the
login.aspx page?

Oct 19 '07 #1
1 2118
Jon
On 19 Oct, 20:29, Jeremy <slayer3...@gmail.comwrote:
I have a web app that contains forms authentication to protect
subdirectory called "admin" by denying anonymous users. When I request
a protected resource in the admin directory I am presented with a
Windows logon dialog prompt instead of being redirected to the logon
page. In the web.config it is setup as follows:

<configuration>
<system.web>
...
<authentication mode="Forms">
<forms
name="myCookie"
protection="All"
path="/"
loginUrl="login.aspx"
timeout="10" >
</forms>
</authentication>
...
<system.web>

<location path="admin">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>

<configuration>

If I change the <deny users="?"/to <allow users="?"/the Windows
logon prompt goes away, but of course the resource us unprotected and
it does not redirect to the login.aspx page. Its behaving as though I
am using Windows authentication. Any ideas why is the Windows logon
prompt is being displayed rather than simply redirecting to the
login.aspx page?
Hello mate,

Have a look at IIS in the security tab, as it could be due to that.
Also, search for impersonate in google. I had this problem once as it
was that.

HTH,

Jon

www.nantwichonline.com/pubs.aspx
All things Nantwich

Oct 21 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by ElmoWatson | last post: by
2 posts views Thread by VR | last post: by
reply views Thread by Ed Henn | last post: by
reply views Thread by Steve - DND | last post: by
reply views Thread by Anonieko Ramos | last post: by
7 posts views Thread by Rob | last post: by
18 posts views Thread by Rippo | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.