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

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:
    598
    Edward Jones
    Aug 7, 2003
  2. Brent
    Replies:
    2
    Views:
    840
    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:
    378
  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:
    424
    Marina
    Jun 14, 2004
  5. Stephen
    Replies:
    1
    Views:
    423
    =?Utf-8?B?U2FudGhpIE1hYWRoYXZlbg==?=
    Dec 3, 2005
  6. Bragadiru

    Access denied error message

    Bragadiru, Feb 15, 2007, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    219
    Bragadiru
    Feb 15, 2007
  7. Quinn Dunham

    Error message Access Denied

    Quinn Dunham, Aug 21, 2003, in forum: ASP General
    Replies:
    1
    Views:
    136
    Atrax
    Aug 21, 2003
  8. Lin Ma
    Replies:
    2
    Views:
    344
    Steven Burn
    Dec 17, 2003
Loading...