Custom "Access Denied" Message

Discussion in 'ASP .Net Security' started by Jay Nesbitt, Nov 17, 2003.

  1. Jay Nesbitt

    Jay Nesbitt Guest

    I'm using forms authentication along with role based authorization in my web
    app. The problem I'm having is that when a user that has already been
    authenticated tries to access an url that they are not authorized for, they
    get kicked back to the login page. This makes no since to me since the user
    has already been authenticated. Why does asp.net do this? Is there a
    workaround for this that will allow me to present unauthorized users with a
    custom "Access Denied" page? I know I could do this programatically in each
    page but I would prefer a solution that would allow me to do it
    declaritively in the web.config file. Any ideas?

    Thanks
     
    Jay Nesbitt, Nov 17, 2003
    #1
    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. Edward Jones
    Replies:
    0
    Views:
    509
    Edward Jones
    Aug 7, 2003
  2. Brent
    Replies:
    2
    Views:
    685
    Brent
    Apr 8, 2004
  3. =?Utf-8?B?UmV6YSBTb2xvdWtp?=

    Access denied? why getting this message? help

    =?Utf-8?B?UmV6YSBTb2xvdWtp?=, Jun 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    304
  4. =?Utf-8?B?UmV6YSBTb2xvdWtp?=

    Access denied? why would I get this message?

    =?Utf-8?B?UmV6YSBTb2xvdWtp?=, Jun 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    369
    Marina
    Jun 14, 2004
  5. Stephen
    Replies:
    1
    Views:
    337
    =?Utf-8?B?U2FudGhpIE1hYWRoYXZlbg==?=
    Dec 3, 2005
Loading...

Share This Page