471,321 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Forms Authentication for tiered site

I have an application where the root folder of the site has the following
web.config details :-
<authentication mode="Forms">
<forms loginUrl="Login.aspx" />
</authentication>
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
Further into the site at webroot/Courses I have the following web.config
details
<authorization>
<deny users="*" /> <!-- Deny all users -->
</authorization>
when I try to access webroot/Courses/IP221/main.aspx
I am take to the login page which has the following OnClick code:-
public void OnClickLoginIt (Object sender, EventArgs e)
{
DBA CheckLogin = new DBA ();
if (CheckLogin.CustomAuthenticate (EmailIs.Text, PasswordIs.Text, Output))
{
FormsAuthentication.RedirectFromLoginPage (EmailIs.Text, false);
}
}
the authentication is checked and the
FormsAuthentication.RedirectFromLoginPage line is executed (as seen in the
debugger)
However the browser just returns straight to the Login.aspx again.
I have checked that it is a trusted site, cookies are enabled. What can I do
to fix this problem??
Aug 17 '05 #1
0 836

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Greg Burns | last post: by
11 posts views Thread by ElmoWatson | last post: by
reply views Thread by Anonieko Ramos | last post: by
reply views Thread by Timothy Elvidge | last post: by
4 posts views Thread by =?Utf-8?B?R3V1czEyMw==?= | last post: by
5 posts views Thread by Rory Becker | 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.