C
Cory Lievers
Hi there,
Thanks in advanced for any help.
I am new to .NET and am trying to do the following:
Certain paths within the application are public, while certain paths
only are for registered users, and certain paths for administrators.
Using the forms authentication within the web.config file, I can set
certain paths to be locked down to a certain "role". This works fine. A
non-authenticated user hits the url and gets sent to the Login page.
Here's my problem. If a user is already authenticated, but not of the
correct "role", it still redirects them to the Login page. What I would
like is to redirect them to a Permission Denied page (because they are
already logged in, just of a different role).
Any ideas how to do this?
Thanks very much,
Cory
Thanks in advanced for any help.
I am new to .NET and am trying to do the following:
Certain paths within the application are public, while certain paths
only are for registered users, and certain paths for administrators.
Using the forms authentication within the web.config file, I can set
certain paths to be locked down to a certain "role". This works fine. A
non-authenticated user hits the url and gets sent to the Login page.
Here's my problem. If a user is already authenticated, but not of the
correct "role", it still redirects them to the Login page. What I would
like is to redirect them to a Permission Denied page (because they are
already logged in, just of a different role).
Any ideas how to do this?
Thanks very much,
Cory