Redirection according to roles?

T

TheTraveler

Hello,

1. where can i place the code which will redirect users, according to
their roles ?

2. is redirection, according to roles accustomed or is there another
mechanizm out there ?

3. can this be done inside Application_AuthenticateRequest funcion on
file: Global.asax ?

4. i want to emphesize that i want to write this code ONLY ONCE. and
not for every page or resource that will be added to the project.

please help me with this one,

Ore.
 
J

Joe Kaplan \(MVP - ADSI\)

What is it that you mean to do with this redirection? Do you simply want to
restrict certain users in certain roles from accessing particular pages, or
do you want to automatically direct different users to different places
based on their roles?

If it is the former, you don't need to do any programming. Just configure
the authorization tags appropriately in your web.config. If you need
different settings for different pages, use the location tag as well to
define different settings for different locations.

Joe K.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top