Redirection according to roles?

Discussion in 'ASP .Net Security' started by TheTraveler, Aug 23, 2005.

  1. TheTraveler

    TheTraveler Guest

    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.
    TheTraveler, Aug 23, 2005
    #1
    1. Advertising

  2. 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.

    "TheTraveler" <> wrote in message
    news:...
    > 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.
    >
    Joe Kaplan \(MVP - ADSI\), Aug 26, 2005
    #2
    1. Advertising

  3. TheTraveler

    Pat Guest

    As joe adviced..
    Are u implementing Forms or Windows Auth?
    If you are interested in Windows Auth Role based..
    You can look at my blog at:-
    http://spaces.msn.com/members/naijacoder/
    Hope that helps
    Patrick

    "TheTraveler" <> wrote in message
    news:...
    > 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.
    >
    Pat, Aug 29, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    9
    Views:
    5,044
    TomoP
    Apr 14, 2009
  2. Karunakararao
    Replies:
    0
    Views:
    625
    Karunakararao
    May 11, 2004
  3. Miguel Dias Moura

    How to display records according to this rule?

    Miguel Dias Moura, Dec 7, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    342
    Martin Dechev
    Dec 9, 2004
  4. Shapper
    Replies:
    0
    Views:
    432
    Shapper
    May 5, 2005
  5. Jéjé
    Replies:
    0
    Views:
    217
    Jéjé
    Sep 27, 2005
Loading...

Share This Page