Login page problem
Following along with Marco Bellinaso's ASP.NET 2.0 Website Programming, I've reached Chapter 4, where Membership and User Profiling is created for the sample site.
For the authentication, I've used the following web.config commands:
<authentication mode="Forms">
<forms cookieless="AutoDetect" loginUrl="~/AccessDenied.aspx" name="TBHFORMAUTH" />
</authentication>
I have the login box on my master file so all pages have an instance of the login box. The problem is, when a user logs in with invalid credentials, the page they logged in from is refreshed, and no redirect to ~/AccessDenied.aspx happens.
I'm not sure what the problem is here. Anyone have an idea?
|