On my webforms site, you can register as either of three types of account - band, venue and user. This is selected from a dropdown list, the value of which is entered in the SQL Server database along with the username and password. After registration,
you are redirected to the login page, and once you logged in successfully, it takes you to one of three admin pages based on what you registered as - BandAdmin, VenueAdmin and UserAdmin. These three pages are in their own separate directories and this all
works fine, except there's no cookie being created as far as I can tell. On successful authentication, this is the code being executed:
FormsAuthentication.SetAuthCookie(txtUserName.Text, chkRemember.Checked);
What I want to achieve:
Deny anonymous users from either of those three folders, redirecting to the login page.
After logging in in, it takes you to correct page associated with your account rather ...
Go to the complete details ...